Exemple #1
0
 private void OnTriggerEnter2D(Collider2D target)
 {
     if (target.tag == "bullet")
     {
         IBullet bullet = target.GetComponentInParent <IBullet>();
         bullet.SetOff();
         itemManager.DealDamage(this, bullet.DealDamage());
     }
 }