Health and Health Bars
How to use
After importing the building block, simply attach the Health behavior to any entity and it will get a health bar!
Health has the following methods:
damage(number)- Damages the unit, dealing damage to shield firstsetHealth(number)- Set the health valuesetShield(number)- Set the shield valueshowHealthbar()- Show the health barhideHealthbar()- Hide the health bar