HealthBarDisplay Class
From MyDungeon
MyDungeon Documentation
HealthBarDisplay Class |
HealthBarDisplay is the class that manages updating the current health bar display in the HUD
Namespace: MyDungeon.UI.Hud
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
C#
public class HealthBarDisplay : MonoBehaviour
The HealthBarDisplay type exposes the following members.
| Name | Description | |
|---|---|---|
| HealthBarDisplay | Initializes a new instance of the HealthBarDisplay class |
| Name | Description | |
|---|---|---|
| Start |
Finds and stores the health bar, it's foreground, and it's background objects in the HUD
| |
| UpdateHealthBar |
Updates the health bar in the HUD
|
| Name | Description | |
|---|---|---|
| BaseHealth | ||
| HealthBar |
The RectTransform holding the foreground and background elements of the health bar
| |
| HealthBarBackground |
The RectTransform displaying the background image of the health bar
| |
| HealthBarForeground |
The RectTransform displaying the foreground image of the health bar
| |
| MaxHealth |
| Name | Description | |
|---|---|---|
| Invoke |
Invoke using a delegate
(Defined by MonoBehaviourExtensions.) |