Browse Source

Bugly新手引导当界面不显示的时候,关掉定时器,不进行刷新引导界面

huangxiaoyue 1 year ago
parent
commit
093132cf6d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Guide/GuideView.cs

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

@@ -174,6 +174,11 @@ namespace GFGGame
         }
         private void UpdateGuideRect(object param = null)
         {
+            if (!isShowing)
+            {
+                Timers.inst.Remove(UpdateGuideRect);
+                return;
+            }
             if (guideTarget != null)
             {
                 Vector2 pos = guideTarget.LocalToGlobal(Vector2.zero);