HealthBar

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

  1. Add the Healthbar prefab to your scene.
  2. Add the Lava prefab to your scene.
  3. Run Build & Test!