Enter() public method

Called when a State is added to the game. InitializeCamera is called here by default.
public Enter ( ) : void
return void
コード例 #1
0
ファイル: Game.cs プロジェクト: DatZach/HumanityAgainstCards
 public static void PushState(State state)
 {
     states.Add(state);
     state.Enter();
 }
コード例 #2
0
ファイル: Game.cs プロジェクト: DatZach/Californium
 /// <summary>
 /// Pushes a state onto the state stack.
 /// </summary>
 public static void PushState(State state)
 {
     StateStack.Add(state);
     state.Enter();
 }