How to make follow target bullet on photon.

I make the player has interface name is ITakeDamage, how can I make "follow target" bullet can apply the interface structure (ITakeDamage). It's mean when follow target bullet collider the player I will call like:
private void OnTriggerEnter2D(Collider2D col)
var tDM = col.GetComponent<ITakeDamage>();
if(iDM != null) tDM.TakeDamage(500);

And the "follow target" bullet has async transform on all clients.
Sign In or Register to comment.