Ejemplo n.º 1
0
 /// <summary>
 /// Checks if the required conditions to enter this state are true. If so the state machine will automatically change the current state to the desired one.
 /// </summary>
 public virtual bool CheckEnterTransition(CharacterState fromState)
 {
     return(true);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This method runs once when the state has entered the state machine.
 /// </summary>
 public virtual void EnterBehaviour(float dt, CharacterState fromState)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// This method runs once when the state has exited the state machine.
 /// </summary>
 public virtual void ExitBehaviour(float dt, CharacterState toState)
 {
 }