예제 #1
0
    //press that button, black color.
    //in this case, this button only works when the chosen foot is black.
    //it must not work when the current foot is white.
    public void ButtonPressBlack()
    {
        if (chosenfoot.name == "White Button" && started && !failed)
        {
            chosenfoot = chosenfoot.SwitchChosen();

            UponPress();
        }
    }