コード例 #1
0
 public static GameUILevelupPanel GetInstance()
 {
     if (GameUILevelupPanel.mInstance == null)
     {
         GameObject original = Res.LoadGUI("GUI/GameUILevelupPanel");
         GameObject gameObject = UnityEngine.Object.Instantiate(original) as GameObject;
         GameUILevelupPanel.mInstance = gameObject.GetComponent<GameUILevelupPanel>();
     }
     return GameUILevelupPanel.mInstance;
 }
コード例 #2
0
 private void OnCloseLevelupBgAnimEnd()
 {
     Globals.Instance.TutorialMgr.InitializationCompleted(this, null);
     if (this.levelupUnlockLevel > 0)
     {
         bool flag = false;
         if (GameUIManager.mInstance.IsSessionExisted(GameUILevelupPanel.UnlockPopUpSessions))
         {
             flag = GUIUnlockPopUp.Show(this.levelupUnlockLevel, null, this.mCloseCallback);
         }
         if (!flag)
         {
             GameUIManager.mInstance.uiState.UnlockNewGameLevel = this.levelupUnlockLevel;
             if (this.mCloseCallback != null)
             {
                 this.mCloseCallback();
             }
             GameUIManager.mInstance.TryCommend(ECommentType.EComment_Level, 0f);
         }
     }
     else
     {
         if (this.mCloseCallback != null)
         {
             this.mCloseCallback();
         }
         GameUIManager.mInstance.TryCommend(ECommentType.EComment_Level, 0f);
     }
     UnityEngine.Object.DestroyImmediate(base.gameObject);
     GameUILevelupPanel.mInstance = null;
 }