UNITY TUTORIAL | PROJECT | SPACE SHOOTER |15. Ending Game

2
creating “Restart” UI Text
3
creating “Game Over” UI Text
4
adding codes to “GameController” script for Restart & GameOver
5
adding codes to “DestroyByContact”

ezgif.com-video-to-gif.gif

UNITY TUTORIAL | PROJECT | SPACE SHOOTER |14. Counting Points and Score

2
Creating Canvas & UI Text
3
Changing “Anchor” of UI Text
4
Changing “Anchor” to “Top-Left”
11
adding codes to “Game Controller” script
12
adding Text UI to “Game Controller” script as a reference
13
Adding Codes to “DestroyByContact” script | making a reference of “Game Controller” to use “AddScore” Function
14
setting Score Value in Asteroid Prefab
5
Creating “Game Score” Script

ezgif.com-video-to-gif-2

Another way of setting Score UI

6
Game Score Script
7
Adding “Game Score” script to Text UI
8
Tagging UI
9
adding codes to increment score after destroying a hazard