浏览代码

引导摘星时,到画星星阶段退出游戏,重进会卡死

zhaoyang 3 年之前
父节点
当前提交
3ded8c7fe1

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Constant/ConstGuideId.cs

@@ -9,6 +9,7 @@ namespace GFGGame
         public const string TARGET_FIGHT = "TARGET_FIGHT";
         public const string FIGHT_TIPS = "FIGHT_TIPS";
         public const string LUCKY_BOX = "LUCKY_BOX";
+        public const string LUCKY_BOX_LINE = "LUCKY_BOX_LINE";
         public const string FREEDOM_DRESS = "FREEDOM_DRESS";
         public const string CLOTHING_DECOMPOSE = "CLOTHING_DECOMPOSE";
         public const string CLOTHING_SYNTHETIC = "CLOTHING_SYNTHETIC";

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Common/Alert/AlertWindow.cs

@@ -195,6 +195,7 @@ namespace GFGGame
         {
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
             GuideController.TryGuide(_ui.m_btnRight, ConstGuideId.LUCKY_BOX, 4, "点击确定");
+            GuideController.TryCompleteGuide(ConstGuideId.LUCKY_BOX, 4);
         }
 
     }

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs

@@ -81,7 +81,7 @@ namespace GFGGame
 
         private void ResetStartView()
         {
-            showGuide = GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX) <= 0;
+            showGuide = GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX_LINE) <= 0;
 
             curComStar = null;
             comStars.Clear();
@@ -321,17 +321,17 @@ namespace GFGGame
         {
 
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
-            GuideController.TryGuide(null, ConstGuideId.LUCKY_BOX, 5, "点击将星星链接在一起", -1, true, (int)(this.viewCom.height - 150));
+            GuideController.TryGuide(null, ConstGuideId.LUCKY_BOX_LINE, 1, "点击将星星链接在一起", -1, true, (int)(this.viewCom.height - 150));
             TryCompleteGuide();
         }
         protected override void TryCompleteGuide()
         {
             if (clickComStars.Count >= 2)
             {
-                GuideCfg cfg = GuideCfgArray.Instance.GetCfg(ConstGuideId.LUCKY_BOX);
+                GuideCfg cfg = GuideCfgArray.Instance.GetCfg(ConstGuideId.LUCKY_BOX_LINE);
 
-                GuideController.TryCompleteGuideIndex(cfg.id, 5);
-                GuideController.TryCompleteGuide(ConstGuideId.LUCKY_BOX, 5);
+                GuideController.TryCompleteGuideIndex(cfg.id, 1);
+                GuideController.TryCompleteGuide(ConstGuideId.LUCKY_BOX_LINE, 1);
             }
             else
             {

二进制
GameClient/Assets/ResIn/Config/excelConfig.sqlite.bytes