コード例 #1
0
        public void LevelLoop()
        {
            while (true)
            {
                Console.WriteLine("To go to main menu, press 9. To exit game, press 0.");
                int key = ServiceFunctions.ChoosingRightKey(Console.ReadKey().KeyChar);
                switch (key)
                {
                case 9:
                    MainFunctions.MainMenu();
                    break;

                case 0:
                    MainFunctions.Exit_Game();
                    break;

                default:
                    break;
                }
            }
        }