Exemple #1
0
    void CowOptionIsPressed()
    {
        // Reset reusable lights etc for directing attention to certain changes
        ResetStates();

        switch (chosenOption)
        {
        case "optionA":
            print("Cow: optionA activated");
            break;

        case "optionB":
            print("Cow: optionB activated");
            break;

        case "optionC":
            print("Cow: optionC activated");
            break;

        case "optionD":
            print("Cow: optionD activated");
            break;
        }
        show = !show;
        CowUIDisplay.SetActive(show);
    }
Exemple #2
0
 void CowIsReleased()
 {
     print("Cow activated");
     show = !show;
     CowUIDisplay.SetActive(show);
 }