private void UnRegisterEvent() { if (mPlayerEventQueue != null) { mPlayerEventQueue.RemoveAll(); } if (mNetMsgQueue != null) { mNetMsgQueue.RemoveAll(); } }
public override void Destroy() { base.Destroy(); if (mNetMsgQueue != null) { mNetMsgQueue.RemoveAll(); } if (mPlayerEventQueue != null) { mPlayerEventQueue.RemoveAll(); } mScene = null; }
private void UnRegister() { if (mNetMsgQueue != null) { mNetMsgQueue.RemoveAll(); } if (mScene != null) { mScene.UnRegisterSceneEvent(SceneEventType.SE_NotifyTSDKLoginSucceed, TSDKLoginSuccees); mScene.UnRegisterSceneEvent(SceneEventType.SE_NotifyTSDKLoginFail, OnLoginFail); mScene.UnRegisterSceneEvent(SceneEventType.SE_NotifyStartTSDKLogin, OnStartLogin); mScene.UnRegisterSceneEvent(SceneEventType.SE_NotifyVersionUpdate, OnStatrVersionCheck); mScene.UnRegisterSceneEvent(SceneEventType.SE_NotifyConfigCheck, StartConfigCheck); } if (mGlobalEventQueue != null) { mGlobalEventQueue.RemoveAll(); } }