Ejemplo n.º 1
0
 public void goToPauseState()
 {
     States.State temp = currentState;
     currentState = new States.PauseMenu(this, Keyboard.GetState(), GamePad.GetState(PlayerIndex.One), "", temp);
     currentState.Initialize();
     currentState.LoadContent();
 }
Ejemplo n.º 2
0
 public void goToPauseState()
 {
     States.State temp = currentState;
     currentState = new States.PauseMenu(this, Keyboard.GetState(), GamePad.GetState(PlayerIndex.One), "", temp);
     currentState.Initialize();
     currentState.LoadContent();
 }
Ejemplo n.º 3
0
 public void goToNextState(States.State state)
 {
     for (int i = this.Components.Count - 1; i >= 0; i--) {
         if (this.Components[i] is GameComponent) {
             GameComponent temp = (GameComponent)this.Components[i];
             temp.Dispose();
         }
     }
     currentState = state;
     currentState.Initialize();
     currentState.LoadContent();
 }
Ejemplo n.º 4
0
 public void goToNextState(States.State state)
 {
     for (int i = this.Components.Count - 1; i >= 0; i--)
     {
         if (this.Components[i] is GameComponent)
         {
             GameComponent temp = (GameComponent)this.Components[i];
             temp.Dispose();
         }
     }
     currentState = state;
     currentState.Initialize();
     currentState.LoadContent();
 }