This is a small tool for Unity3D game engine which adds an event like messiging system to for the scripting.
It’s very basic but is capable of many things.
There are 3 main methods for it.
Mbus.addListener(string, IListener) – this adds a listener to an event. Event is just a name of the listener to listen to.
Mbus.removeListener(string, IListener) – remove a listener for a specific event name.
Mbus.sendMessage(string, object) – triggers an event and call a Callback method on the listener class implementation. The second attribute is anything you want to sent to the Callback method.
You can get the sciprts and test scene from here:
MBus – Size: 39.8 KB Downloads: 219