Skip to content

Me::DerangedSenators::CopsAndRobbers::HealthBar

Inherits from MonoBehaviour

Public Functions

Name
void SetMaxHealth(float health)
Setting health bar to max health.
void SetHealth(float health)
Updating health bar to current health.

Public Attributes

Name
Slider slider
Gradient gradient
Image fill

Public Functions Documentation

function SetMaxHealth

inline void SetMaxHealth(
    float health
)

Setting health bar to max health.

Parameters:

  • health Amount of health to be set to health bar at the beginning.

function SetHealth

inline void SetHealth(
    float health
)

Updating health bar to current health.

Parameters:

  • health Amount of health to be set to health bar.

Public Attributes Documentation

variable slider

Slider slider;

variable gradient

Gradient gradient;

variable fill

Image fill;

Updated on 17 January 2021 at 14:41:11 UTC