Exemplo n.º 1
0
    void HandleDifficultySettingInput(string input)
    {
        int inputInt;

        // if input can be parsed as int
        if (Int32.TryParse(input, out inputInt) && inputInt < 4 && inputInt > 0)
        {
            switch (inputInt)
            {
            case 1:
                hideDifficulty = HideDifficulty.EASY;
                break;

            case 2:
                hideDifficulty = HideDifficulty.NORMAL;
                break;

            case 3:
                hideDifficulty = HideDifficulty.HARD;
                break;
            }
            ShowMainMenu();
        }
        else
        {
            Terminal.WriteLine("Invalid option!");
        }
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     mode           = Mode.SHUFFLE;
     hideDifficulty = HideDifficulty.NORMAL;
     ShowMainMenu();
 }