HealthBarDisplay Class

MyDungeon

HealthBarDisplay Class

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

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
  NameDescription
Public methodHealthBarDisplay
Initializes a new instance of the HealthBarDisplay class
Top
Methods
  NameDescription
Protected methodStart
Finds and stores the health bar, it's foreground, and it's background objects in the HUD
Public methodUpdateHealthBar
Updates the health bar in the HUD
Top
Fields
  NameDescription
Protected fieldStatic memberBaseHealth
Protected fieldHealthBar
The RectTransform holding the foreground and background elements of the health bar
Protected fieldHealthBarBackground
The RectTransform displaying the background image of the health bar
Protected fieldHealthBarForeground
The RectTransform displaying the foreground image of the health bar
Protected fieldStatic memberMaxHealth
Top
Extension Methods
  NameDescription
Public Extension MethodInvoke
Invoke using a delegate
(Defined by MonoBehaviourExtensions.)
Top
See Also