소스 검색

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)
         {
+            if (!isShowing)
+            {
+                Timers.inst.Remove(UpdateGuideRect);
+                return;
+            }
             if (guideTarget != null)
             {
                 Vector2 pos = guideTarget.LocalToGlobal(Vector2.zero);