Emits a local event on this entity.
The event type.
Optionaldetail: unknownOptional data to pass with the event.
Stops listening for a local event.
The event type.
The function to remove.
Listens for a local event on this entity.
The event type.
The function to run when the event occurs.
OptionalonOptional lifecycle hook called when the component is added to a GameObject.
Component that allows an entity to emit and listen for local events.