Exemple #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Enemy")
     {
         atkMng.Attack();
     }
 }
 public void AttackHit()
 {
     if (atkMng == null)
     {
         Debug.LogError(atkMng);
     }
     else
     {
         atkMng.Attack();
     }
 }