Hey there , any one has idea or links to create this 
I am trying to create my own EventHandler. Should I use Scriptable Objects as mandatory ? why is the different this approach , is it like even bus ? but with a Handler? … any possible to create an eventhandler manager or somethign with unique ID . I do not care or visual aspect , I prefer easy reading code rather to have 10000 asset on a folder. I prefer Scriptable objects for Items, not for events , it is confused for me to get small workspace and anxious to find things on folders.
In its simplest form a static event handler is this:
public static class GlobalEvents
{
public static event Action OnWhateverJustHappened;
public static void RaiseThatEvent()
{
OnWhateverJustHappened?.Invoke();
}
}
That’s all. 
Yes, you can get much more elaborate than this. But most cases the simplemost version will do. However, this version would allow any class to raise any event, so the first improvement would primarily focus on ensuring that only authorized classes can raise certain events.
The other improvement would be to ensure it is compatible with “Disabled Domain Reload”. As you may be aware, DDR allows you to enter playmode instantly but it requires resetting (nulling) static fields either when exiting or entering playmode. The extra effort is minimal, and hugely offset by the amount of time not wasted waiting for domain reloads every playmode.
1 Like
Ok but this EvenManager allows to Register and register by notifications ? or just use the static void event “RaiseTheEvent()” ? there are not any way to put custom signature? .
I feel missed in that book’s page specefic in the way how to build my EventManager.