Our version of the traditional game will be simpler, but it still requires a good bit of dexterity to win. The five-bottle pyramids will be placed when the game is launched and restacked when needed. We will provide the player with five balls that can be picked up and thrown with the Touch controller. And lastly, we'll add a reset button to remove the thrown balls and lay out a new set for the player to throw:
- Create an empty GameObject called BottleGame at (0, 0, 0).
- Just like we did with the MoleGame, we need to assign a new script to the BottleGame called BottleGameController. This script will instantiate the balls and bottles, and facilitate a reset function.
Our Milk Bottle Toss game (the BottleSmash GameObject) booth is ...