2D View, AddTorque, GameManager, Lists, While Loops, Mouse Events, TextMeshPro, Canvas, Anchor Points, Import Libraries, Custom Libraries, Custom Method With Parameters, Calling Methods From Other Scripts, Game Stats, OnClick Events, Scene Management Library, Booleans to Control Game Stats, AddListener(), Passing Parameters Between Scripts, Divide/Assign(/=) Operator, Grouping Child Objects in Unity Visual Studio C#
5.1 Clicky Mouse
1. Create project and switch to 2D view
2. Create good and bad target
3. Toss objects randomly in the air
4. Replace messy code with new method
5. Create object list in Game Manager
6. Create a coroutine to spawn objects
7. Destroy target with click and sensor
New Functionality:
Random objects are tossed into the air on intervals
Objects are given random speed, position and torque
If you click on an object, it is destroyed
New Concetps and Skills:
2D view
AddTorque
Game Manager
List
While loops
Mouse Events
5.2 Keeping Score
1. Add Score Text position it on screen
2. Edit the Score Text's properties
3. Initialize score text and variable
4. Create a new UpdateScore method
5. Add score when targets are destroyed
6. Assign a point value each target
7. Add a Particle explosion
New Functionality:
There is a UI element for score on the screen
The player's score is tracked and displayed by the score text when hit a target
There are particle explosions when the player gets an object
New Concepts and Skills:
TextMeshPro
Canvas
Anchor Points
Import Libraries
Custom methods with parameters
Calling methods from other scripts
5.3 Game Over
1. Create a Game Over text object
2. Make GameOver text appear
3. Create GameOver function
4. Stop spawning and score on GameOver
5. Add a Restart button
6. Make the restart button work
7. Show restart button on game over
New Functionality:
A functional Game Over screen with a Restart button
When the Restart button is clicked the game resets
New Concepts and Skills
Buttons
On Click events
Scene management Library
Booleans to control game states
5.4 What's the Difficulty
1. Create Title text and menu buttons
2. Add a DifficultyButton script
3. Call SetDifficulty on button click
4. Make your buttons start the game
5. Deactivate Title Screen on StartGame
6. Use a parameter to change difficulty
New Functionality:
Title screen that let's user start the game
Difficulty selection that affect spawn rate
New Concepts and Skills:
AddListener()
Passing parameters between scripts
Divide/Assign(/=) operator
Grouping child objects
Bonus Features
Easy - Lives UI
Medium - Music Volume
Hard - Pause Menu
Expert - Click and Swipe