Healthcomponents of colliding
- Required to have RegisterTarget() called via its onEnter UnityEvent to function.
- Required to have UnregisterTarget() called via its onExit UnityEvent to function.
- Required to have ModifyHealth() called via its onStay UnityEvent to function.
Call AddListeners() if HealthZone is added to a GameObject during runtime.
| ||amount||Amount of health to modify per frame.||1, Minimum value = 0|
| ||targetHP||Health components to apply damage to.|
| ||lastHealth||The last health component registered/unregisterd.|
|ModifyHealth||Health change is updated per frame to all || |
|RegisterTarget||Tries to get the || |
|UnregisterTarget||Tries to get the || |
|AddListeners||Adds the required listeners to the || |