本帖最后由 浪浪 于 2019-1-17 14:25 编辑
插件名称:Event System X 1.1.1 | 插件官网:访问官网 | 版权协议:Red pine1.1 | 解压密码:通用密码 | Event System X 1.1.1
https://www.assetstore.unity3d.com/en/?stay#!/content/77432
Event System
Event System X 1.1.1 广播与传送的专用插件
Event System X
广播与传送的专用插件
广播与传送的专用插件
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.
|
|