Gen Events

FREE
Publisher Panettone Games
File size 273.22kB
Number of files 27
Latest version 1
Latest release date 2022-05-02 10:56:49
First release date 2021-05-05 11:02:13
Supported Unity versions 2018.4.2 or higher

Gen Events is a clean implementation of Observer Game Design Pattern utilizing the power of Unity's Scriptable Objects

Singletons almost always start simple and are indeed practical in small projects, however; more often than not, they turn into a "God Class" on which your game is heavily dependant and hard to maintain.


It is a C# Pub-Sub system in which the Publisher MonoBehaviour sends itself to all registered Subscribers through a shared Scriptable Object asset located in the project files NOT loaded into the scene, making it easier to switch between different levels.


Demo Scene included with a basic implementation of 1 Publisher and 5 Subscribers performing common Game Events e.g. Glow, Scale, SFX, Spawn Particles, and Camera Shake



Minimal Setup: (Demo Scene and Tutorial Included in the Package)

Top Publisher Assets