private void CheckHitPlayer()
 {
     if (!AttackHit && AIUtility.HitPlayer(Entity.transform.position, Attack, Context.PlayerLayer))
     {
         AttackHit = true;
         Entity.GetComponent <SpeedManager>().SelfSpeed.x = 0;
     }
 }
Exemple #2
0
 private void CheckHitPlayer()
 {
     if (!AttackHit)
     {
         if (AIUtility.HitPlayer(Magic.transform.position, MagicAttack, Context.PlayerLayer))
         {
             AttackHit = true;
         }
     }
 }