For the next iteration of the game, we'll shoot balls toward the player, and you have to hit them at a target on a wall. Not a lot of changes are required to make this version work. It shows how you can take an existing mechanic and turn it on its side (both literally and figuratively). Follow the steps given next:
- Save the current scene with a new name,Scene-09-Shooterball, by selecting File | Save As
- We're going to replace the control script, so remove the Ball Game component from the Ball Game Controller by right-clicking | Delete)
- Also, Delete the Drop Point object child of XR Rig
Next, we'll make a shooter wall with the target on it. Then, we'll change the controller script to shoot balls at the player rather than dropping them from above.
Making a shooter wall
To begin, let's make a wall and put the target on it, as follows:
- In...