maxHealth : number The Game Objects maximum health value. This works in combination with the heal method to ensure
heal Heal the Game Object. This adds the given amount of health to the health property. Source code:
damage Damages the Game Object. This removes the given amount of health from the health property. If health is taken below or is equal to zero
new Health() The Health component provides the ability for Game Objects to have a health propertythat can be damaged
setHealth Sets the health property of the Game Object to the given amount.Will never exceed the maxHealth value.