![]() |
FCV Engine 0.1
A tool and framework for tutorials in game development
|
Connects Health with UI, made it generalised so it can be used in multiple places and be connected with multiple amounts of UI Elements. More...
Private Member Functions | |
void | OnDisable () |
Removes listeners from onHealthChanged. | |
void | OnHealthChanged (int currentHealth, int maxHealth) |
Invokes the healthUpdate UnityEvent and sending percentile health is of maxHealth. | |
Connects Health with UI, made it generalised so it can be used in multiple places and be connected with multiple amounts of UI Elements.
Definition at line 10 of file HealthUI.cs.
|
private |
Invokes the healthUpdate UnityEvent and sending percentile health is of maxHealth.
currentHealth | the current health the player or object has |
maxHealth | the max health of the player or object has |
Definition at line 35 of file HealthUI.cs.