We need to update and add some new functionalities to Placeskee ballMachine. Mostly, we will change the update function to respond to AppState.PlaceSkeeMachine, AppState.PlaceSkeeMachineComplete, and AppState.StartGame. We will also change our Options button by renaming it to MoveBtn and then making it change whether the user is moving the machine or not. Let's carry out these steps:
- Open up the Placeskee ballMachine.cs file and add the following line around line 28:
- Save the file and head back to Unity for a moment.
- Find skee|UI|OptionsBtn.
- Rename it to MoveBtn.
- Now, drag the object from the Hierarchy view ...