This repository was archived by the owner on Aug 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
CharacterHealth.cs
Erik edited this page Apr 26, 2019
·
7 revisions
Script: CharacterHealth.cs
- None
- ResetHealth() - Restores the character to maximum health
- TakeDamage(int damage) - Removes damage from health (cannot go below 0)
- Heal(int healthAmount) - Adds healthAmount to health (cannot go above maxHealth)
- HealthChanged - Invoked when damage or healing is done.
- OnDeath - Invoked when health reaches 0.
- health
- maxHealth
Holds and maintains the player's current health. If health ever goes below 0, it is set to 0. If health ever goes above maxHealth, it is set to maxHealth.
Script Documentation
General Scripts
Generic Character Scripts
Enemy Scripts
Player Scripts
Erik's ongoing laundry list of TODOs that he doesn't want to create issues for