MyDungeon Documentation
HealthBarDisplay Class |
HealthBarDisplay is the class that manages updating the current health bar display in the HUD
Inheritance Hierarchy
Namespace: MyDungeon.UI.Hud
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class HealthBarDisplay : MonoBehaviour
The HealthBarDisplay type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HealthBarDisplay | Initializes a new instance of the HealthBarDisplay class |
Methods
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
|
Fields
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 |
Extension Methods
Name | Description | |
---|---|---|
Invoke |
Invoke using a delegate
(Defined by MonoBehaviourExtensions.) |
See Also