FCV Engine 0.1
A tool and framework for tutorials in game development
Loading...
Searching...
No Matches
Health Class Reference

Component that can be added to any object if it is supposed to be killed or destroyed. More...

Inheritance diagram for Health:

Public Member Functions

void RemoveHealth (int amount)
 Removes health by amount.
 
void AddHealth (int amount)
 Adds to health by amount.
 

Private Member Functions

void ModifyHealth (int healthChange)
 Modifies health int and invokes related UnityEvents.
 

Detailed Description

Component that can be added to any object if it is supposed to be killed or destroyed.

Definition at line 11 of file Health.cs.

Member Function Documentation

◆ AddHealth()

void AddHealth ( int amount)

Adds to health by amount.

Parameters
amountAmount to heal

Definition at line 40 of file Health.cs.

◆ ModifyHealth()

void ModifyHealth ( int healthChange)
private

Modifies health int and invokes related UnityEvents.

Parameters
healthChange

Definition at line 49 of file Health.cs.

◆ RemoveHealth()

void RemoveHealth ( int amount)

Removes health by amount.

Parameters
amountAmount to remove from health

Definition at line 30 of file Health.cs.


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