纳金网

标题: Event System - Dispatcher 1.55 [打印本页]

作者: 狂风大尉    时间: 2017-8-23 14:33
标题: Event System - Dispatcher 1.55

2015-7-7 23:53 上传
Requires Unity 4.6.1 or higher - 需要使用Unity 4.6.1以上的版本

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+.

Event System - Dispatcher 1.55.rar

53.53 KB, 阅读权限: 10, 下载次数: 86


作者: lovetrance    时间: 2017-8-23 17:44
这种方式效率太低 难怪没啥人用
作者: seeyou_1984    时间: 2017-8-24 11:00
最重要的是.资源居然是破的




欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5