查看: 1434|回复: 2
打印 上一主题 下一主题

[插件资源] Event System - Dispatcher 1.55

[复制链接]

2722

主题

42

听众

3万

积分

资深设计师

Rank: 7Rank: 7Rank: 7

纳金币
38279
精华
111

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

跳转到指定楼层
楼主
发表于 2017-8-23 14:33:32 |只看该作者 |倒序浏览

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

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

使用道具 举报

0

主题

6

听众

1010

积分

助理设计师

Rank: 4

纳金币
172
精华
0

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

沙发
发表于 2017-8-23 17:44:54 |只看该作者
这种方式效率太低 难怪没啥人用
回复

使用道具 举报

0

主题

1

听众

2744

积分

中级设计师

Rank: 5Rank: 5

纳金币
125
精华
0

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

板凳
发表于 2017-8-24 11:00:43 |只看该作者
最重要的是.资源居然是破的
回复

使用道具 举报

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

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

GMT+8, 2025-6-30 17:45 , Processed in 0.058766 second(s), 31 queries .

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

© 2008-2019 Narkii Inc.

回顶部