Пример #1
0
 private void Update()
 {
     motor.AnimationState(animator, navMeshAgent);
     if (attack.PlayerInRange(player, transform, attackRange))
     {
         if (!attacking)
         {
             animator.SetBool("Attacking", true);
         }
     }
 }