Example #1
0
 /// <summary>
 /// 注册事件
 /// </summary>
 /// <param name="eventName">事件名</param>
 /// <param name="callback">事件回调</param>
 protected void EventRegister(string eventName, System.Action <System.Object> callback)
 {
     mEventPool.Add(XEvent.Register(eventName, callback));
 }
Example #2
0
 private void Awake()
 {
     mRegionTick = XEvent.Register(I18NEventConst.OnUseRegion, OnSetRegion, FrameworkConst.FrameworkEventGroupName);
     RefreshTextValue();
 }