Beispiel #1
0
 public void RemoveState(GameState state)
 {
     if (States.Contains(state))
         States.Remove(state);
 }
Beispiel #2
0
 public void AddState(GameState state)
 {
     state.StateManager = this;  //shows that this state belongs to this statemanager
     state.ProcessInput(InputState); //initializes input
     States.Add(state);
 }