예제 #1
0
 // add it to the player head
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.tag == "PlayerFeet")
     {
         _onHit.ExecuteDamage();
         other.gameObject.GetComponentInParent <OnHit>().KnockBack(20);
     }
 }