Ver Fonte

摘星定时器没有即时出现问题

huangxiaoyue há 1 ano atrás
pai
commit
6257fcd73a

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

@@ -142,9 +142,9 @@ namespace GFGGame
             LuckyBoxDataManager.Instance.currentBoxId = boxId;
 
             bool actLimitTsyOpen = LuckyBoxDataManager.Instance.GetActLimitTsyOpen();
-            if (LuckyBoxDataManager.Instance.currentBoxId == _activeBoxId)
+            if (_activeBoxId > 0)
                 Timers.inst.Add(1, 0, CheckTime);
-            else if (actLimitTsyOpen && LuckyBoxDataManager.Instance.currentBoxId == LuckyBoxDataManager.BOX_ID_2)
+            if (actLimitTsyOpen)// && LuckyBoxDataManager.Instance.currentBoxId == LuckyBoxDataManager.BOX_ID_2
                 Timers.inst.Add(1, 0, UpdateTime);
 
             _curIndex = LuckyBoxDataManager.Instance.luckyBoxIds.IndexOf(boxId);