Challenge

    void OnUserInput(string input)
    {
        print("The user typed: " + input);
        if (input == "menu")
        {
            ShowMainMenu("        Select Target System");
        }
        else if (input == "1"){
            StartGame(1);
        }
        else if (input == "2"){
            StartGame(2);
        }
        else if (input == "frak")
        {
            ShowMainMenu("Chiana says hi!  Please try again.");
        }
        else
        {
            ShowMainMenu("**Invalid Input.  Please try again.**");
        }

    }

    void StartGame(int level)
    {
        Terminal.WriteLine("You have chosen level - " + level);
    }```

Privacy & Terms