Unity Project 3: Beer Pong Code Explained
This script has been written with the purpose that when any gameobject with the tag "Cups" has collided with the ball gameobject, they are destroyed (they disappear).
The 'Rotation' script allows the cannon to rotate making the game more difficult.
The script generates balls to shoot from the cannon when a key (Space is pressed).
Comments