Singletons are one of the most widely used patterns in game development. But the downside is that they create a tight coupling between systems in your project. An event bus is a great alternative that lets your systems keep talking with each other without the tight dependency. In this tutorial we'll walk through what an event bus is and how to create one.
Note: The
GameplayEventBusscript has been updated since the video. The current, more performant version lives inReference/, while the original script shown in the video is kept inReference/Obsolete/for reference.
The current GameplayEventBus script is in Reference/, with the original video version in Reference/Obsolete/.