Game Development Reference
In-Depth Information
Hit Point UI (Script)
Player
robot (Player)
Drag the robot game object to the Hierarchy view here
Frame Tex-
ture
hitPointFrame
This is located in the Resources / UI folder
Hp Texture
hitPointBarHP
This is located in the Resources / UI folder
Ai Texture
hitPointEnemy
This is located in the Resources / UI folder
Text Hp
Texture
HP
This is located in the Resources / UI folder
Text Ai Tex-
ture
ENEMY
This is located in the Resources / UI folder
Now, we have finished our game, so click on Play to see the result. We will see that when
the player or enemy gets shot, the hit-point bar will decrease.
Search WWH ::




Custom Search