Exemple #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);
 }
Exemple #2
0
 /// <summary>
 /// This method runs once when the state has entered the state machine.
 /// </summary>
 public virtual void EnterBehaviour(float dt, CharacterState fromState)
 {
 }
Exemple #3
0
 /// <summary>
 /// This method runs once when the state has exited the state machine.
 /// </summary>
 public virtual void ExitBehaviour(float dt, CharacterState toState)
 {
 }