Exemplo n.º 1
0
 public override void Enter(EnemyAgent agent)
 {
     agent.SetAnimation(true);
     agent.GetNavMeshAgent().isStopped = true;
     agent.ResetAttack();
     //start attack animation
     agent.Attack();
 }
 public override void Enter(EnemyAgent agent)
 {
     agent.GetRigidbody().velocity     = Vector3.zero;
     agent.GetNavMeshAgent().isStopped = true;
     agent.SetAnimation(true);
     agent.ResetAttack();
     //start attack animation
     agent.Attack();
 }