Unity Learn home
View Tutorial Content

Lesson 5.2 - Keeping Score

Tutorial
Beginner
+10 XP
1 Hour10 Mins
(2084)
Overview
For Educators
Summary
Overview:
Objects fly into the scene and the player can click to destroy them, but nothing happens. In this lesson, we will display a score in the user interface that tracks and displays the player’s points. We will give each target object a different point value, adding or subtracting points on click. Lastly, we will add cool explosions when each target is destroyed.
Project Outcome:
A “Score: “ section will display in the UI, starting at zero. When the player clicks a target, the score will update and particles will explode as the target is destroyed. Each “Good” target adds a different point value to the score, while the “Bad” target subtracts from the score.
Select your Unity version
Last updated: January 03, 2024
2022.3
2021.3
2021.2
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
6
Language
English
Overview Video
Overview
Lesson 5.2 - Keeping Score
0 Secs
Lesson 5.2 - Keeping Score