private static void ProcessGameOver(object sender, EventArgs args) { gameScoreConsole = new GameScoreConsole(castleConsole); gameScoreConsole.RestartGame += RestartGame; gameScoreConsole.QuitGame += QuitGame; SadConsole.Global.CurrentScreen = gameScoreConsole; SadConsole.Global.FocusedConsoles.Set(gameScoreConsole); }
private void ProcessGameOver(object sender, EventArgs args) { SadConsole.Engine.ConsoleRenderStack[0].IsVisible = false; SadConsole.Engine.ConsoleRenderStack.Remove(castleConsole); gameScoreConsole = new GameScoreConsole(castleConsole); gameScoreConsole.RestartGame += RestartGame; gameScoreConsole.QuitGame += QuitGame; SadConsole.Engine.ConsoleRenderStack.Add(gameScoreConsole); SadConsole.Engine.ConsoleRenderStack[0].IsVisible = true; SadConsole.Engine.ActiveConsole = SadConsole.Engine.ConsoleRenderStack[0]; }