Unity Learn home
View Tutorial Content

Lesson 5.3 - Game Over

Tutorial
Beginner
+10 XP
1 Hour10 Mins
(513)
Overview
For Educators
Summary
Overview:
We added a great score counter to the game, but there are plenty of other game-changing UI elements that we could add. In this lesson, we will create some “Game Over” text that displays when a “good” target object drops below the sensor. During game over, targets will cease to spawn and the score will be reset. Lastly, we will add a “Restart Game” button that allows the player to restart the game after they have lost.
Project Outcome:
When a “good” target drops below the sensor at the bottom of the screen, the targets will stop spawning and a “Game Over” message will display across the screen. Just underneath the “Game Over” message will be a “Reset Game” button that reboots the game and resets the score, so the player can enjoy it all over again.
Select your Unity version
Last updated: January 03, 2024
2022.3
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
Language
English
Overview Video
Overview
Lesson 5.3 - Game Over
0 Secs
Lesson 5.3 - Game Over