zhaoyang 2 年之前
父節點
當前提交
41a63b4dca
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

+ 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);