2D Platform Controller  v1.7.0
Autogenerated code documentation for the 2D Platform Controller.
 All Classes Functions Variables Properties
SimpleHealthBarUI Class Reference

A very simple health bar UI. You could extend to create your own health bar if you wnt to easily integrate with the other sample scripts. More...

Inherits MonoBehaviour.

Public Member Functions

virtual void AnimateHealthChange (float from, float to)
 

Public Attributes

GameObject visibleContents
 The visible contents. Enable/disable this to show the health bar. More...
 
Transform healthBar
 Transform of the mesh representing health. More...
 
float animationSpeed
 How fast does damage show. More...
 
float visibleDelay
 How long do we show the health bar for after taking a hit. More...
 

Detailed Description

A very simple health bar UI. You could extend to create your own health bar if you wnt to easily integrate with the other sample scripts.

Member Data Documentation

float SimpleHealthBarUI.animationSpeed

How fast does damage show.

Transform SimpleHealthBarUI.healthBar

Transform of the mesh representing health.

GameObject SimpleHealthBarUI.visibleContents

The visible contents. Enable/disable this to show the health bar.

float SimpleHealthBarUI.visibleDelay

How long do we show the health bar for after taking a hit.


The documentation for this class was generated from the following file: