Example #1
0
 protected void OnClickBtnExit(GameObject sender)
 {
     this.Show(false);
     LoadingUIView.Open(false);
     if (this.BtnExitAction != null)
     {
         this.BtnExitAction.Invoke();
     }
 }
 private void OnClickExitBtn(GameObject go)
 {
     LoadingUIView.Open(false);
     this.Show(false);
     if (this.ExitCallback != null)
     {
         this.ExitCallback.Invoke();
     }
 }
Example #3
0
 public void OnBtnExitUp()
 {
     LoadingUIView.Open(false);
     BattlePassUIView.Instance.Show(false);
     if (this.exitCallback != null)
     {
         this.exitCallback.Invoke();
     }
 }
Example #4
0
 public void OnStartLoad(int sceneID, List <MapObjInfo> otherObjs)
 {
     if (this.action_allResource_loaded_timer_id > 0u)
     {
         TimerHeap.DelTimer(this.action_allResource_loaded_timer_id);
         this.action_allResource_loaded_timer_id = 0u;
     }
     SoundManager.Instance.StopBGM(null);
     EntityWorld.Instance.ClearAllMapObjects();
     NPCManager.Instance.ClearAllNPCs();
     EventDispatcher.Broadcast <int, int>(SceneManagerEvent.UnloadScene, MySceneManager.Instance.CurSceneID, sceneID);
     if (!this.IsWorldMapSwitch(sceneID))
     {
         if (InstanceManager.CurrentInstanceType == InstanceType.Arena)
         {
             UIManagerControl.Instance.HideAllExcept(new string[]
             {
                 "LoadingUI",
                 "PVPVSUI"
             });
         }
         else
         {
             UIManagerControl.Instance.HideAllExcept(new string[]
             {
                 "LoadingUI"
             });
         }
         LoadingUIView.Open(false);
         this.isCurrentHasLoading = true;
         this.TrulyStartLoad(sceneID, otherObjs);
     }
     else
     {
         this.isCurrentHasLoading = false;
         FXSpineManager.Instance.ShowBattleStart1(sceneID, delegate
         {
             AssetLoader.UnloadUnusedAssets(delegate
             {
                 this.TrulyStartLoad(sceneID, otherObjs);
             });
         });
     }
 }