查看: 1631|回复: 1
打印 上一主题 下一主题

[插件资源] Event System - Dispatcher 1.41

[复制链接]

711

主题

10

听众

5805

积分

高级设计师

Rank: 6Rank: 6

纳金币
2954
精华
3

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

跳转到指定楼层
楼主
发表于 2015-7-7 23:56:42 |只看该作者 |倒序浏览

Snap8.png

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 v1.4.1.rar

49.41 KB, 阅读权限: 10, 下载次数: 136

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

5

主题

1

听众

127

积分

设计实习生

Rank: 2

纳金币
1
精华
0

最佳新人

沙发
发表于 2015-7-20 14:48:06 |只看该作者
有Ugui还用这个嘛?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-8-20 13:53 , Processed in 0.062768 second(s), 30 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部