Пример #1
0
 /// <summary>
 /// 删除监听器
 /// </summary>
 private void removeListener()
 {
     GlobalEventSource.getInstance().removeListener((int)EventTypes.PlayerLogin, WingPlayerLoginEventListener.getInstnace());
     GlobalEventSource.getInstance().removeListener((int)EventTypes.PlayerLogout, WingPlayerLogoutEventListener.getInstnace());
 }
Пример #2
0
 private void removeListener()
 {
     GlobalEventSource.getInstance().removeListener(0, WingPlayerLoginEventListener.getInstnace());
     GlobalEventSource.getInstance().removeListener(1, WingPlayerLogoutEventListener.getInstnace());
 }