Browse Source

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

huangxiaoyue 1 year ago
parent
commit
6257fcd73a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

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

@@ -142,9 +142,9 @@ namespace GFGGame
             LuckyBoxDataManager.Instance.currentBoxId = boxId;
             LuckyBoxDataManager.Instance.currentBoxId = boxId;
 
 
             bool actLimitTsyOpen = LuckyBoxDataManager.Instance.GetActLimitTsyOpen();
             bool actLimitTsyOpen = LuckyBoxDataManager.Instance.GetActLimitTsyOpen();
-            if (LuckyBoxDataManager.Instance.currentBoxId == _activeBoxId)
+            if (_activeBoxId > 0)
                 Timers.inst.Add(1, 0, CheckTime);
                 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);
                 Timers.inst.Add(1, 0, UpdateTime);
 
 
             _curIndex = LuckyBoxDataManager.Instance.luckyBoxIds.IndexOf(boxId);
             _curIndex = LuckyBoxDataManager.Instance.luckyBoxIds.IndexOf(boxId);