In this video, I'm going to show y'all the new event bus version to replace the first one that was created in 2023
The key changes include:
- Change Event Creation From Using System.Type To String
- Removed Unnecessary Interfaces
- The EventDefinition Class Is Now Marked As Internal
- Added Event Unsubscription Checks, Warning About Classes That Have Listeners That Are Not Getting Unsubscribed
You can check the old version here: https://www.youtube.com/watch?v=LXExPj0AmVg&feature=youtu.be
You can download the scripts here: https://github.com/Lasanha-Dev/Unity-EventBus
If you have any questions or suggestions, just drop a comment down below.
00:00 UI Example
00:47 EventBus
01:03 Event Declaration
01:15 Events Unsubscription Check
04:40 New Event Example
06:40 EventDefinition
07:29 Invoking Event