C# Class HealthManager, Joyful

Inheritance: MonoBehaviour, IDamageable, ILiving
Show file Open project: GDCASU/Joyful Class Usage Examples

Public Properties

Property Type Description
healthBar Slider,
isDead bool
maxPlayerHealth int
playerHealth int

Public Methods

Method Description
FullHealth ( ) : void
HurtPlayer ( int damageToGive ) : void
healthRecovery ( int healthToRecover ) : void

Private Methods

Method Description
Start ( ) : void
Update ( ) : void

Method Details

FullHealth() public method

public FullHealth ( ) : void
return void

HurtPlayer() public static method

public static HurtPlayer ( int damageToGive ) : void
damageToGive int
return void

healthRecovery() public static method

public static healthRecovery ( int healthToRecover ) : void
healthToRecover int
return void

Property Details

healthBar public property

public Slider, healthBar
return Slider,

isDead public property

public bool isDead
return bool

maxPlayerHealth public static property

public static int maxPlayerHealth
return int

playerHealth public static property

public static int playerHealth
return int