} // InGame /// <summary> /// Add game screen, which will be used until we quit it or add /// another game screen on top of it. /// </summary> /// <param name="newGameScreen">New game screen</param> public void AddGameScreen(IGameScreen newGameScreen) { gameScreens.Push(newGameScreen); inGame = newGameScreen.GetType() == typeof(Mission); camera.InGame = inGame; Sound.CurrentMusicMode = inGame; } // AddGameScreen(newGameScreen)
/// <summary> /// Add game screen, which will be used until we quit it or add /// another game screen on top of it. /// </summary> /// <param name="newGameScreen">New game screen</param> public void AddGameScreen(IGameScreen newGameScreen) { gameScreens.Push(newGameScreen); inGame = newGameScreen.GetType() == typeof(Mission); camera.InGame = inGame; Sound.CurrentMusicMode = inGame; }
/// <summary> /// Add game screen, which will be used until we quit it or add /// another game screen on top of it. /// </summary> /// <param name="newGameScreen">New game screen</param> public void AddGameScreen(IGameScreen newGameScreen) { gameScreens.Push(newGameScreen); inGame = newGameScreen.GetType() == typeof(Mission); }