コード例 #1
0
		private void removeListener()
		{
			GlobalEventSource.getInstance().removeListener(0, WanMoTaPlayerLoginEventListener.getInstnace());
			GlobalEventSource.getInstance().removeListener(1, WanMoTaPlayerLogoutEventListener.getInstnace());
		}
コード例 #2
0
 /// <summary>
 /// 删除监听器
 /// </summary>
 private void removeListener()
 {
     GlobalEventSource.getInstance().removeListener((int)EventTypes.PlayerLogin, WanMoTaPlayerLoginEventListener.getInstnace());
     GlobalEventSource.getInstance().removeListener((int)EventTypes.PlayerLogout, WanMoTaPlayerLogoutEventListener.getInstnace());
 }