浏览代码

摘星引导完成时关闭,左右箭头切换天市垣 没弹出许愿问题

huangxiaoyue 1 年之前
父节点
当前提交
95a1ba3cef
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

+ 4 - 2
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -197,7 +197,7 @@ namespace GFGGame
             if (index < 0) return;
             _ui.m_listBg.ScrollToView(index, true);
 
-            if (_activityId > 0 && _curIndex == LuckyBoxDataManager.BOX_ID_2)
+            if (_activityId > 0 && index + 1 == LuckyBoxDataManager.BOX_ID_2)
                 GetWishingPoolInfo(_activityId);
         }
 
@@ -208,7 +208,7 @@ namespace GFGGame
             index = Mathf.Min(_ui.m_listBg.numItems - 1, index);
             _ui.m_listBg.ScrollToView(index, true);
 
-            if (_activityId > 0 && _curIndex == LuckyBoxDataManager.BOX_ID_2)
+            if (_activityId > 0 && index + 1 == LuckyBoxDataManager.BOX_ID_2)
                 GetWishingPoolInfo(_activityId);
         }
 
@@ -624,7 +624,9 @@ namespace GFGGame
 
             GuideController.TryGuide(null, ConstGuideId.LUCKY_BOX, 1, "“摘星”里可以通过星辰的力量获得服饰。", -1, true, _ui.target.height - 600);
             GuideController.TryGuide(btnBuyTen, ConstGuideId.LUCKY_BOX, 2, "点击摘取十次。");
+            GuideController.TryCompleteGuide( ConstGuideId.LUCKY_BOX, 2);
         }
+
         protected override void TryCompleteGuide()
         {
             base.TryCompleteGuide();