Once again, we will add some code to
PlayerControl and to the
ShowIt() method of
SetupState. We will be creating five GUI buttons to change colors. While we're at it, we'll also create a GUI label to tell the user to press the Space bar to pause Player rotation, and modify the button to switch States.
PlayerControlscript. Add the code shown in the red boxes:
SetupState. Write your code as shown: