コード例 #1
0
 void OnTriggerEnter2D(Collider2D collision)
 {
     if (attacking && Owned())
     {
         if (!(Object.ReferenceEquals(collision.gameObject, owner)))
         {
             owner_hdl.OnWeaponHit(collision.gameObject);
         }
     }
 }