Example #1
0
 public override void Enter(LittleBossAgent agent)
 {
     agent.GetRigidbody().velocity     = Vector3.zero;
     agent.GetNavMeshAgent().isStopped = true;
     agent.SetAnimation(true);
     agent.ResetAttack();
     agent.Attack();
 }
Example #2
0
 public override void Exit(LittleBossAgent agent)
 {
     agent.GetNavMeshAgent().isStopped = false;
     agent.SetAnimation(false);
 }