This is a paid asset, but now you can download Event System – Dispatcher for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
For more detail this asset from the Unity Asset Store: Click Here
Event System – Dispatcher v1.646 (Latest version)
Event System – Dispatcher v1.643
“If possible, please buy the package to support the developer”
Event and message dispatching is a critical part of any game. Message dispatching ensures that game objects are able to communicate in a consistent, reliable, and efficient way.
Dispatcher does this and makes it easy too! Simply tell the Dispatcher what an object wants to listen for. When another object sends that message to the Dispatcher, the Dispatcher will ensure all the “listeners” are notified.
Documentation
Forum
Web Demo
Dispatch basic messages with two simple lines:
MessageDispatcher.AddListener(“LEVEL_WON”, OnLevelWon);
MessageDispatcher.SendMessage(“LEVEL_WON”);
Features
* Create and send custom message types
* Send messages containing custom data
* Send messages to everyone
* Send messages to objects based on their name
* Send messages to objects based on their tag
* Send messages to objects based on a string
* Send a message immediately
* Send a message at the next frame
* Schedule a message for the future
* Connect multiple listeners to a single message
* High performance
Bonus: Includes a ‘Profiler’ for testing performance! Use this with any of your C# scripts.
Unity and Unity Pro versions supported.
Supports Unity 3.4+.