zhaoyang пре 2 година
родитељ
комит
2d66d1dc6c

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -233,7 +233,8 @@ namespace GFGGame
                 else
                 {
                     MainStoryDataManager.currentChapterCfgId = 10001;
-                    if (GameGlobal.isFirstEntry == true)
+                    // GameGlobal.isFirstEntry == true 
+                    if (!InstanceZonesDataManager.CheckLevelPass(100001001))
                     {
                         GameGlobal.isFirstEntry = false;
                         // StoryController.ShowPriorStoryDialog();

+ 4 - 3
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -150,6 +150,7 @@ namespace GFGGame
                 _speedAutoPlay = 1;
                 FightDataManager.Instance.dialogSpeed = _speedAutoPlay;
             }
+            if (!InstanceZonesDataManager.CheckLevelPass(100001001)) _ui.m_btnBack.visible = false;
         }
 
         protected override void OnHide()
@@ -181,7 +182,7 @@ namespace GFGGame
         private void OnClickBtnNext()
         {
             // StopAutoPlay();
-            if(_onScreenEffectComplete != null)
+            if (_onScreenEffectComplete != null)
             {
                 Timers.inst.Remove(OnScreenEffectComplete);
                 _onScreenEffectComplete.Invoke(null);
@@ -392,7 +393,7 @@ namespace GFGGame
                 _ui.m_dialogHead.m_comphead.m_holder.visible = true;
 
                 var headAniCfg = HeadAniCfgArray.Instance.GetCfg(headAniRes);
-                if(headAniCfg != null && !string.IsNullOrEmpty(headAniCfg.headAni))
+                if (headAniCfg != null && !string.IsNullOrEmpty(headAniCfg.headAni))
                 {
                     //¶ÀÁ¢¶¯»­
                     _ui.m_dialogHead.m_compDressUp.target.visible = false;
@@ -406,7 +407,7 @@ namespace GFGGame
                     _ui.m_dialogHead.m_compDressUp.target.visible = true;
                     _ui.m_dialogHead.m_comphead.target.visible = false;
                     _dressUpObjUI.ResetSceneObj(80, true, false, null, false);
-                    if(storyDialogCfg.suitId > 0)
+                    if (storyDialogCfg.suitId > 0)
                     {
                         _dressUpObjUI.dressUpObj.PutOnSuitCfg(storyDialogCfg.suitId, false, new int[] { ConstDressUpItemType.BEI_JING }, false, false);
                     }