static void CheckMenuChooseOption(int value, int menu) { if (menu == 0) { switch (value) { case 0: ChooseLevelMenu(); break; case 1: WordsMenu(); break; case 2: Exit(); break; } } else if (menu == 1) { switch (value) { case 0: Words.Display(); break; case 1: Words.Add(); break; case 2: Words.Delete(); break; case 3: StartMenu(); break; } } else if (menu == 2) { switch (value) { case 0: HangManGame.Level = 1.25f; HangManGame.Start(); break; case 1: HangManGame.Level = 1.5f; HangManGame.Start(); break; case 2: HangManGame.Level = 2f; HangManGame.Start(); break; case 3: StartMenu(); break; } } else if (menu == 3) { switch (value) { case 0: ChooseLevelMenu(); break; case 1: StartMenu(); break;; case 2: Exit(); break; } } }
/// <summary> Starts the menu </summary> public static void Awake() { Words.Filter(); StartMenu(); }
public static void Exit() { Write.MiddleC("Exiting...."); Words.Filter(); Environment.Exit(0); }