纳金网

标题: Event System X 1.1 - Event广播与传送的专用插件 [打印本页]

作者: 烟雨    时间: 2017-6-12 14:44
标题: Event System X 1.1 - Event广播与传送的专用插件

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


作者: liu3343992    时间: 2017-6-13 09:17
好想学习委托事件




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