Exemple #1
0
 public void OnStateEnter(GameState enteringState)
 {
     _state = enteringState;
     _enterStateListeners.NotifyListeners(enteringState);
     Debug.Log("Entering: " + enteringState.ToString());
 }
Exemple #2
0
 public void OnStateExit(GameState exitingState)
 {
     _exitStateListeners.NotifyListeners(exitingState);
     //Debug.Log("Exiting: " + exitingState.ToString());
 }
Exemple #3
0
 public void OnStateEnter(GameState enteringState)
 {
     _state = enteringState;
     _enterStateListeners.NotifyListeners(enteringState);
 }