Description
A simple example that shows how to make a simple healthbar.
How it works
The lava stores a reference to the local player’s healthbar. Upon entering the trigger, it will start damaging the player through the health bar’s TakeDamage
function (which should only be called on the local client).
How to use it
- Add the
Healthbar
prefab to your scene. - Add the
Lava
prefab to your scene. - Run Build & Test!