Enter() public method

Called when a State is added to the game. InitializeCamera is called here by default.
public Enter ( ) : void
return void
Esempio n. 1
0
 public static void PushState(State state)
 {
     states.Add(state);
     state.Enter();
 }
Esempio n. 2
0
 /// <summary>
 /// Pushes a state onto the state stack.
 /// </summary>
 public static void PushState(State state)
 {
     StateStack.Add(state);
     state.Enter();
 }