Beispiel #1
0
 public void SwitchState(GameStateBase state, object data)
 {
     if (gameState != null)
     {
         gameState.End();
     }
     gameState = state;
     gameState.MyManager = this;
     gameState.Init(data);
 }
Beispiel #2
0
 public GameStateManager()
 {
     gameState = null;
 }