Browse Source

引导卡死修复

guodong 1 year ago
parent
commit
d9f7753c18

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Guide/GuideView.cs

@@ -178,7 +178,7 @@ namespace GFGGame
                 logicScreenPos.y = logicScreenPos.y + guideTarget.height / 2;
                 if (_ui.m_mask.m_guideArea.xy == logicScreenPos)
                 {
-                    Timers.inst.Remove(UpdateGuideRect);
+                    //Timers.inst.Remove(UpdateGuideRect);
                     _ui.m_comHolder.target.xy = _ui.m_mask.m_guideArea.xy;
 
                     if (logicScreenPos.x > GRoot.inst.width / 2)

+ 9 - 15
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs

@@ -800,29 +800,23 @@ namespace GFGGame
         }
         private void CheckGuide(object param)
         {
-            if (GuideDataManager.IsGuideFinish(ConstGuideId.TARGET_FIGHT) <= 0)
-            {
-                UpdateToCheckGuide(null);
-            }
-            else
+            if (!ViewManager.CheckIsTopView(this.viewCom)) return;
+            bool success = UpdateToCheckGuide1(null);
+            if (success)
             {
-                CheckPartAllFightBegin();
-                Timers.inst.Remove(CheckGuide);
+                return;
             }
+            CheckPartAllFightBegin();
+            Timers.inst.Remove(CheckGuide);
         }
 
-        protected override void UpdateToCheckGuide(object param)
+        protected bool UpdateToCheckGuide1(object param)
         {
-            if (!ViewManager.CheckIsTopView(this.viewCom)) return;
-
-            // if (playStop)
-            // {
-            //    
-            // }
             // GuideController.TryGuide(_ui.m_btnSkill0.target, ConstGuideId.TARGET_FIGHT, 2, "使用技能,可以增加胜出的几率哦,长按查看技能说明。");
-            GuideController.TryGuide(null, ConstGuideId.TARGET_FIGHT, 1, "这里可以观察双方的分数计算。", -1, true, _ui.m_proScore.target.height + 250);
+            bool success = GuideController.TryGuide(null, ConstGuideId.TARGET_FIGHT, 1, "这里可以观察双方的分数计算。", -1, true, _ui.m_proScore.target.height + 250);
             // GuideController.TryGuide(_ui.m_proScore.target, ConstGuideId.TARGET_FIGHT, 1, "这里可以观察双方的分数计算。");
             GuideController.TryCompleteGuide(ConstGuideId.TARGET_FIGHT, 1);
+            return success;
 
         }
     }