Unity Learn home
View Tutorial Content

Introducing Health

Tutorial
Beginner
+10 XP
30 Mins
(225)
Summary
You will add health and define the winning conditions for the game Tutorial Outcome By the end of this tutorial, you will be able to Add script to keep track of the health of a player Make obstacles subtract a player’s health Display the health of a player Add User Interface design to the game Tag GameObjects Define the winning conditions Key concepts: Health System Attribute script Modify Health Attribute script Challenge Ideas: Try introducing a GameObject that allows the player to recover points. Hint: it’s really important to use a positive value for the Modify Health Attribute script’s Health Change section
Select your Unity version
Last updated: July 28, 2020
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
Language
English
Introducing Health