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