HealthDisplay Class

MyDungeon

HealthDisplay Class

HealthDisplay is the class that manages updating the current health display in the HUD
Inheritance Hierarchy
SystemObject  Object
    Component
      Behaviour
        MonoBehaviour
          MyDungeon.UI.HudHealthDisplay

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
  NameDescription
Public methodHealthDisplay
Initializes a new instance of the HealthDisplay class
Top
Methods
  NameDescription
Protected methodStart
Finds the UI Text object that displays the current health in the HUD
Public methodUpdateHealth
Updates the health displayed in the HUD and adds padding if the health is less than 3 digits
Top
Fields
  NameDescription
Protected fieldHealthText
The UI Text object displaying the current floor
Top
Extension Methods
  NameDescription
Public Extension MethodInvoke
Invoke using a delegate
(Defined by MonoBehaviourExtensions.)
Top
See Also