MyDungeon Documentation
HealthDisplay Class |
HealthDisplay is the class that manages updating the current health 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 HealthDisplay : MonoBehaviour
The HealthDisplay type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HealthDisplay | Initializes a new instance of the HealthDisplay class |
Methods
Name | Description | |
---|---|---|
Start |
Finds the UI Text object that displays the current health in the HUD
| |
UpdateHealth |
Updates the health displayed in the HUD and adds padding if the health is less than 3 digits
|
Fields
Name | Description | |
---|---|---|
HealthText |
The UI Text object displaying the current floor
|
Extension Methods
Name | Description | |
---|---|---|
Invoke |
Invoke using a delegate
(Defined by MonoBehaviourExtensions.) |
See Also