Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

CharacterHealthUI.cs

Erik edited this page Apr 26, 2019 · 2 revisions

Dependencies:
Public Methods:
  • None
Public Events:
  • None
Configurable Fields:
  • healthBar - Transform of the GameObject that will be shrunken or increases in size in respect to % health remaining.
General Overview:

Listens to CharacterHealth component's HealthChanged event and changes the scale.x of the healthBar transform to reflect percentage health.

Clone this wiki locally