/// <summary> /// Метод для выбора уровня сложности /// </summary> public void ChooseGameLVL() { Console.WriteLine(""); gameText.WriteText(gameText.LvlNumber); Console.WriteLine(""); Console.Write("-"); try { int number = Convert.ToInt32(Console.ReadLine()); switch (number) { case 1: DeathLVl death = new DeathLVl(); death.StartLvl(); break; case 2: HardLVL hard = new HardLVL(); hard.StartLvl(); break; case 3: MediumLVl medium = new MediumLVl(); break; case 4: EasyLVL easy = new EasyLVL(); easy.StartLvl(); break; case 5: UserLimits limits = new UserLimits(); limits.StartLvl(); break; case 6: UserLVL userLVL = new UserLVL(); userLVL.StartLvl(); break; default: gameText.WriteText(gameText.InputLimitsLvl); ChooseGameLVL(); break; } } catch (Exception) { gameText.WriteText(gameText.UserMistakeInput); ChooseGameLVL(); } }