zhaoyang 2 жил өмнө
parent
commit
41a63b4dca

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

@@ -209,15 +209,11 @@ namespace GFGGame
             if (!_lcukyBoxCtrl.ContainsKey(boxId))
             {
                 _lcukyBoxCtrl.Add(boxId, new LuckyBoxController(comBox.m_comModel.target));
-                // if (_ui.m_listBg.ChildIndexToItemIndex(0) == _curIndex)
-                // {
-                //     _lcukyBoxCtrl[boxId].OnShown(boxId);
-                // }
             }
             _lcukyBoxCtrl[LuckyBoxDataManager.Instance.currentBoxId].OnShown(LuckyBoxDataManager.Instance.currentBoxId);
 
             LuckyBoxDataManager.Instance.GetOwnedCount(boxId, out int count, out int totalCount);
-
+            comBox.m_imgSpecial.visible = boxId != LuckyBoxDataManager.BOX_ID_3;
             comBox.m_txtOwned.SetVar("v1", "" + count).FlushVars();
             comBox.m_txtOwned.SetVar("v2", "" + totalCount).FlushVars();
             int boughtCount = GameGlobal.myNumericComponent.GetAsInt(cfg.numericType);