Firing events from the editor
4_ScriptableEvent
Last updated
4_ScriptableEvent
Last updated
You don’t always need to use code to fire an event. Because it is a Scriptable Object, you can call it from the editor. If you select the prefab_enemy_event, you can see that the event example_onEnemyHitPlayer is raised directly from a unity event.
There is an EventListenerInt on the prefab_player that listens to it.