瀏覽代碼

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

huangxiaoyue 1 年之前
父節點
當前提交
093132cf6d
共有 1 個文件被更改,包括 5 次插入0 次删除
  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)
         private void UpdateGuideRect(object param = null)
         {
         {
+            if (!isShowing)
+            {
+                Timers.inst.Remove(UpdateGuideRect);
+                return;
+            }
             if (guideTarget != null)
             if (guideTarget != null)
             {
             {
                 Vector2 pos = guideTarget.LocalToGlobal(Vector2.zero);
                 Vector2 pos = guideTarget.LocalToGlobal(Vector2.zero);