Component that can be added to any object if it is supposed to be killed or destroyed.
More...
|
void | RemoveHealth (int amount) |
| Removes health by amount.
|
|
void | AddHealth (int amount) |
| Adds to health by amount.
|
|
|
void | ModifyHealth (int healthChange) |
| Modifies health int and invokes related UnityEvents.
|
|
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.
◆ AddHealth()
void AddHealth |
( |
int | amount | ) |
|
Adds to health by amount.
- Parameters
-
Definition at line 40 of file Health.cs.
◆ ModifyHealth()
void ModifyHealth |
( |
int | healthChange | ) |
|
|
private |
Modifies health int and invokes related UnityEvents.
- Parameters
-
Definition at line 49 of file Health.cs.
◆ RemoveHealth()
void RemoveHealth |
( |
int | amount | ) |
|
Removes health by amount.
- Parameters
-
amount | Amount to remove from health |
Definition at line 30 of file Health.cs.
The documentation for this class was generated from the following file:
- C:/Users/christian.backstrom/Documents/Unity/FCV/FCV-Engine/Assets/Scripts/Health.cs