Event Listeners

The pro version 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

Last updated