|
@@ -209,15 +209,11 @@ namespace GFGGame
|
|
if (!_lcukyBoxCtrl.ContainsKey(boxId))
|
|
if (!_lcukyBoxCtrl.ContainsKey(boxId))
|
|
{
|
|
{
|
|
_lcukyBoxCtrl.Add(boxId, new LuckyBoxController(comBox.m_comModel.target));
|
|
_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);
|
|
_lcukyBoxCtrl[LuckyBoxDataManager.Instance.currentBoxId].OnShown(LuckyBoxDataManager.Instance.currentBoxId);
|
|
|
|
|
|
LuckyBoxDataManager.Instance.GetOwnedCount(boxId, out int count, out int totalCount);
|
|
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("v1", "" + count).FlushVars();
|
|
comBox.m_txtOwned.SetVar("v2", "" + totalCount).FlushVars();
|
|
comBox.m_txtOwned.SetVar("v2", "" + totalCount).FlushVars();
|
|
int boughtCount = GameGlobal.myNumericComponent.GetAsInt(cfg.numericType);
|
|
int boughtCount = GameGlobal.myNumericComponent.GetAsInt(cfg.numericType);
|