public void ChangeState(GameState state) { if (m_CurrentGamestate != null) m_CurrentGamestate.Exit(); m_CurrentGamestate = state; if (m_CurrentGamestate != null) { m_CurrentGamestate.Enter(); } }
public GameStateManager(Game game) : base(game) { m_CurrentGamestate = null; }