Beispiel #1
0
        public void ChangeState(GameState state)
        {
            if (m_CurrentGamestate != null)
                m_CurrentGamestate.Exit();

            m_CurrentGamestate = state;

            if (m_CurrentGamestate != null)
            {
                m_CurrentGamestate.Enter();
            }
        }
Beispiel #2
0
 public GameStateManager(Game game)
     : base(game)
 {
     m_CurrentGamestate = null;
 }