Class CharacterHealthUI
Updates position and the fill amount of a character health bar.
Namespace: AutoBattleFramework.BattleUI
Assembly: cs.temp.dll.dll
Syntax
public class CharacterHealthUI : MonoBehaviour
Fields
HealthBar
Declaration
public Image HealthBar
Field Value
| Type | Description |
|---|---|
| Image |
Methods
GetCharacter()
Returns the character who owns this bar.
Declaration
public GameCharacter GetCharacter()
Returns
| Type | Description |
|---|---|
| GameCharacter |
Initialize(GameCharacter)
Set the character reference and the transform position.
Declaration
public void Initialize(GameCharacter character)
Parameters
| Type | Name | Description |
|---|---|---|
| GameCharacter | character |