public void Render() { bool needToRender = true; do { while (Console.KeyAvailable) { ConsoleKeyInfo pressedChar = Console.ReadKey(true); switch (pressedChar.Key) { case ConsoleKey.R: Console.Clear(); needToRender = false; GUIController.RenderPlayerselectionMenu(); break; case ConsoleKey.M: Console.Clear(); needToRender = false; GUIController.RenderMainMenu(); break; case ConsoleKey.Q: Console.Clear(); needToRender = false; break; } } } while (needToRender); }
public static void Main(string[] args) { Console.CursorVisible = false; GUIController.RenderMainMenu(); }