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