Ejemplo n.º 1
0
 private void UnRegisterEvent()
 {
     if (mPlayerEventQueue != null)
     {
         mPlayerEventQueue.RemoveAll();
     }
     if (mNetMsgQueue != null)
     {
         mNetMsgQueue.RemoveAll();
     }
 }
Ejemplo n.º 2
0
 public override void Destroy()
 {
     base.Destroy();
     if (mNetMsgQueue != null)
     {
         mNetMsgQueue.RemoveAll();
     }
     if (mPlayerEventQueue != null)
     {
         mPlayerEventQueue.RemoveAll();
     }
     mScene = null;
 }
Ejemplo n.º 3
0
 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();
     }
 }