Esempio n. 1
0
 /// <summary>
 /// 解单个注册角色事件.
 /// </summary>
 /// <param name="varType"></param>
 /// <param name="varFun"></param>
 public void UnRegisterPlayerEvent(PlayerEventType varType, Air2000.EventHandlerDelegate varFunc)
 {
     if (mEventManager == null)
     {
         return;
     }
     mEventManager.Unregister((int)varType, varFunc);
 }
Esempio n. 2
0
 /// <summary>
 /// 注册角色事件.
 /// </summary>
 /// <param name="varPET"></param>
 /// <param name="varFun"></param>
 public void RegisterPlayerEvent(PlayerEventType varType, Air2000.EventHandlerDelegate varFunc)
 {
     if (mEventManager == null)
     {
         mEventManager = new PlayerEventProcessor(this);
         return;
     }
     mEventManager.Register((int)varType, varFunc);
 }