Do you want to learn more about event bus, add queues, priorities and IDs to your events? If so, take a look at this! - www.patreon.com/posts/118963517 I will also be intruducing channel memberships soon, so the videos for supporters will also be available here on UA-cam!
i also create event bus without other class need to call the event bus. Use scriptable object, and drag n drop func on event in the same game object. Then drag n drop SO to unity event you want to execute the action. This is Absolute modular.
Don't over use this, it is a NIGHTMARE pattern to debug. imo it should not be used at all for "standard game logic" (like level up), you can use this for a notification system or something more generic. The problem you described in the beginning can simply be solved with a proper component composition approach. (also the errors are event bus error, i know its irrelative but it was funny :p)
Do you want to learn more about event bus, add queues, priorities and IDs to your events? If so, take a look at this! - www.patreon.com/posts/118963517
I will also be intruducing channel memberships soon, so the videos for supporters will also be available here on UA-cam!
Best tutorial on the event bus that I'v seen !
Keep it up !
Thank you very much! I will.
Keep up the good work man! Also Merry Christmas and Happy New Year! :)
Thanks, I will! Merry Christmas and Happy New Year to you too.
FIRST COMMENT, AND I SUBSCRIBED❤
Thank you very much!
i also create event bus without other class need to call the event bus. Use scriptable object, and drag n drop func on event in the same game object. Then drag n drop SO to unity event you want to execute the action. This is Absolute modular.
This sounds like an event channel system. I made something similiar - ua-cam.com/video/nJkYCU8Qe8o/v-deo.html
Don't over use this, it is a NIGHTMARE pattern to debug. imo it should not be used at all for "standard game logic" (like level up),
you can use this for a notification system or something more generic.
The problem you described in the beginning can simply be solved with a proper component composition approach.
(also the errors are event bus error, i know its irrelative but it was funny :p)
I agree that event bus is hard to debug. Still in some cases it can be very useful. Thanks for sharing your experience!