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