Ejemplo n.º 1
0
        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;
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary> Starts the menu </summary>
 public static void Awake()
 {
     Words.Filter();
     StartMenu();
 }
Ejemplo n.º 3
0
 public static void Exit()
 {
     Write.MiddleC("Exiting....");
     Words.Filter();
     Environment.Exit(0);
 }