Browse Source

抽到快速点击会卡引导

zhaoyang 2 years ago
parent
commit
d306d9a96d
1 changed files with 6 additions and 1 deletions
  1. 6 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

+ 6 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -84,7 +84,10 @@ namespace GFGGame
         protected override void OnShown()
         {
             base.OnShown();
-
+            if (GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX) <= 0)
+            {
+                GRoot.inst.touchable = false;
+            }
 
             int boxId = LuckyBoxDataManager.Instance.luckyBoxIds[0];
             if (this.viewData != null)
@@ -375,6 +378,7 @@ namespace GFGGame
         {
             if (GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX) <= 0)
             {
+                GRoot.inst.touchable = true;
                 UpdateToCheckGuide(null);
             }
             else
@@ -386,6 +390,7 @@ namespace GFGGame
         protected override void UpdateToCheckGuide(object param)
         {
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
+
             GButton btnBuyTen = _ui.m_listBg.GetChildAt(0).asCom.GetChild("btnBuyTen").asButton;
 
             GuideController.TryGuide(null, ConstGuideId.LUCKY_BOX, 1, "“摘星”里可以通过星辰的力量获得服饰。", -1, true, _ui.target.height - 600);