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

[插件资源] Event System X 1.1 - Event广播与传送的专用插件

[复制链接]

9903

主题

126

听众

7万

积分

首席设计师

Rank: 8Rank: 8

纳金币
53488
精华
316

最佳新人 热心会员 灌水之王 活跃会员 突出贡献 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2017-6-12 14:44:28 |只看该作者 |倒序浏览

QQ截图20170612144038.jpg
b2ff0e4f-1393-4b9e-920a-5817bf16d94b_scaled.jpg
633a1706-5bc5-4fa9-8ae7-48ceadabc8ee_scaled.jpg
303afdc2-fef7-41a5-b998-793d81cfcbfd_scaled.jpg
29f3433d-0767-4789-9491-d7ef16c97012_scaled.jpg
03a2ba90-06b9-4418-b488-71d069bfb0de_scaled.jpg

Requires Unity 5.0.0 or higher.

Event System X

Event System X allows for the use of Events in the classic sense and in an automatic fashion based on defined triggers saving you time creating how you would fire events.

Features:
•Broadcast empty event messages.
•Broadcast any type of message object.
•Manual Event broadcasting
•Automatic Event broadcasting based on triggers
•Automatic Event broadcasting based on complex sequences
•Remapping Event triggers using "InputRemapper.RemapDown(eventX, callback)"
•Customize automatic broadcast with EventChannels and settings
•One Event can have any number of listeners, and any number of message types
•Listeners have names, tags, and objects that can be set or left null used to identify them
•Listeners define what messages they receive
•High performance
•And more...


Simple Example:
Registering a listener to an event...
var listener = EventManagerControllerX
.GetEvent("My Event Id")
.Register{int}(MethodThatTakesAnInt)

public void MethodThatTakesAnInt(int num){ Debug.Log("Number is "+ num); }

Manually sending a message...
EventManagerControllerX
.GetEvent("My Event Id")
.Broadcast(5);

See the documentation "Example Scene Code" for 14+ different examples on how to use Event System X, or watch the videos provided.


Event System X.rar

842.5 KB, 阅读权限: 10, 下载次数: 56

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

使用道具 举报

7

主题

4

听众

1387

积分

助理设计师

Rank: 4

纳金币
190
精华
0
沙发
发表于 2017-6-13 09:17:51 |只看该作者
好想学习委托事件
回复

使用道具 举报

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

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

GMT+8, 2024-11-24 18:45 , Processed in 1.327843 second(s), 30 queries .

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

© 2008-2019 Narkii Inc.

回顶部