Esempio n. 1
0
        public void Switch(IGameState gameState)
        {
            gameStates.Pop().OnLeft();
            gameStates.Push(gameState);

            gameState.OnEntered();
        }
Esempio n. 2
0
        public void Push(IGameState gameState)
        {
            if (gameStates.Count > 0)
            {
                gameStates.Peek().OnCovered();
            }

            gameStates.Push(gameState);

            gameState.OnEntered();
        }