Esempio n. 1
0
 //Upon exiting state reset speed and animation state
 public override void ExitState(FSMAgent agent)
 {
     agent.SetAnimationStateNormal();
     agent.SetSpeedModifierNormal();
 }
 //Upon entering state, set timer to enter Scatter State
 public override void EnterState(FSMAgent agent)
 {
     agent.SetTimer(10f);
     agent.SetSpeedModifierNormal();
 }