|
@@ -11,6 +11,7 @@ namespace GFGGame
|
|
private UI_StoreChargeUI _ui;
|
|
private UI_StoreChargeUI _ui;
|
|
private ValueBarController _valueBarController;
|
|
private ValueBarController _valueBarController;
|
|
private List<ShopCfg> _shopCfgs;
|
|
private List<ShopCfg> _shopCfgs;
|
|
|
|
+ private List<EffectUI> _effectUIs = new List<EffectUI>();
|
|
|
|
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
{
|
|
{
|
|
@@ -55,14 +56,26 @@ namespace GFGGame
|
|
UpdateView();
|
|
UpdateView();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private void DestroyEffect()
|
|
|
|
+ {
|
|
|
|
+ for (int i = 0; i < _effectUIs.Count; i++)
|
|
|
|
+ {
|
|
|
|
+ EffectUIPool.Recycle(_effectUIs[i]);
|
|
|
|
+ _effectUIs[i] = null;
|
|
|
|
+ }
|
|
|
|
+ _effectUIs.Clear();
|
|
|
|
+ }
|
|
|
|
+
|
|
private void UpdateView()
|
|
private void UpdateView()
|
|
{
|
|
{
|
|
|
|
+ DestroyEffect();
|
|
_ui.m_list.numItems = _shopCfgs.Count;
|
|
_ui.m_list.numItems = _shopCfgs.Count;
|
|
ShopViewManager.Instance.UpdateVipProgressCom(_ui.m_comVipLv.target);
|
|
ShopViewManager.Instance.UpdateVipProgressCom(_ui.m_comVipLv.target);
|
|
}
|
|
}
|
|
protected override void OnHide()
|
|
protected override void OnHide()
|
|
{
|
|
{
|
|
base.OnHide();
|
|
base.OnHide();
|
|
|
|
+ DestroyEffect();
|
|
_valueBarController.OnHide();
|
|
_valueBarController.OnHide();
|
|
}
|
|
}
|
|
protected override void RemoveEventListener()
|
|
protected override void RemoveEventListener()
|
|
@@ -90,7 +103,10 @@ namespace GFGGame
|
|
item.m_grpDouble.visible = isDouble;
|
|
item.m_grpDouble.visible = isDouble;
|
|
item.m_txtDesc.visible = isDouble;
|
|
item.m_txtDesc.visible = isDouble;
|
|
item.m_icon.url = "ui://Store/sc_zizhuan_" + (index + 1);
|
|
item.m_icon.url = "ui://Store/sc_zizhuan_" + (index + 1);
|
|
-
|
|
|
|
|
|
+ if (isDouble) {
|
|
|
|
+ EffectUI _effectUI = EffectUIPool.CreateEffectUI(item.m_holderfEff, "ui_Small_parts", "store_FirstCharge_Double");
|
|
|
|
+ _effectUIs.Add(_effectUI);
|
|
|
|
+ }
|
|
UI_ListChargeItem.ProxyEnd();
|
|
UI_ListChargeItem.ProxyEnd();
|
|
}
|
|
}
|
|
|
|
|