Event System - Dispatcher 1.55 unity3d asset U3D插件下载 unity官网
Event System - Dispatcher 1.55 unity3d asset U3D插件下载 unity官网
Event System - Dispatcher系列索引:
Event System - Dispatcher 1.4.1 下载链接 Event System - Dispatcher 1.644 下载链接
Requires Unity 5.1.0 or higher.
Code supports Unity 3.4 or higher
(The sample scene was created in Unity 4.0 and won't open in Unity 3.4, but the code works as expected.)
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.
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+.