Health System
  • Welcome
  • Get Started
    • Setup
    • Add the Health Component
    • Add a Health Bar
  • Pro Features
    • Event Listeners
    • Damage Zone
    • Death Zone
Powered by GitBook
On this page
  • On Health Changed
  • On Health Empty
  1. Pro Features

Event Listeners

PreviousAdd a Health BarNextDamage Zone

Last updated 1 year ago

The comes with two useful event listener components you can use to setup actions and logic right in the inspector if the health of an object changes or becomes empty.

On Health Changed

The OnHealthChanged event gets invoked when the health of an object changes. You can add it to a GameObject by clicking Add Component->Health System->Events->Ob Health Changed

On Health Empty

The OnHealthChanged event gets invoked when the health of an object changes. You can add it to a GameObject by clicking Add Component->Health System->Events->Ob Health Empty

pro version