|
@@ -50,32 +50,7 @@ namespace GFGGame
|
|
|
_valueBarController = null;
|
|
|
}
|
|
|
SceneController.DestroyObjectFromView(_cardObj, _wrapper);
|
|
|
- _ui.m_loaBg.Dispose();
|
|
|
- _ui.m_comImgCard.m_ComCardImgRes.m_loaCard.Dispose();
|
|
|
- for (int i = 0; i < _comFosterBottom.m_listShowCard.numItems; i++)
|
|
|
- {
|
|
|
- _comFosterBottom.m_listShowCard.GetChildAt(i).asButton.GetChild("ComStarCard").asCom.GetChild("loaStarCard").asLoader.Dispose();
|
|
|
- }
|
|
|
- // for (int i = 0; i < _comFosterBottom.m_listStarConsume.numItems; i++)
|
|
|
- // {
|
|
|
- // UI_ComStarConsume listItem = UI_ComStarConsume.Proxy(_comFosterBottom.m_listStarConsume.GetChildAt(i));
|
|
|
- // listItem.m_loaItem.Dispose();
|
|
|
- // UI_ComStarConsume.ProxyEnd();
|
|
|
- // }
|
|
|
- for (int i = 0; i < _comFosterBottom.m_listSkill.numItems; i++)
|
|
|
- {
|
|
|
- UI_ListSkillItem listItem = UI_ListSkillItem.Proxy(_comFosterBottom.m_listSkill.GetChildAt(i));
|
|
|
- listItem.m_comSkill.m_loaSkill.Dispose();
|
|
|
- UI_ListSkillItem.ProxyEnd();
|
|
|
- }
|
|
|
- // for (int i = 0; i < _comFosterBottom.m_listLvConsume.numItems; i++)
|
|
|
- // {
|
|
|
- // UI_ComConsume listItem = UI_ComConsume.Proxy(_comFosterBottom.m_listLvConsume.GetChildAt(i));
|
|
|
- // listItem.m_loaItem.Dispose();
|
|
|
- // UI_ComConsume.ProxyEnd();
|
|
|
- // }
|
|
|
- // _comFosterBottom.m_listLvConsume
|
|
|
- // UI_ComConsume listItem = UI_ComConsume.Proxy(obj);
|
|
|
+
|
|
|
if (_ui != null)
|
|
|
{
|
|
|
_ui.Dispose();
|
|
@@ -198,9 +173,7 @@ namespace GFGGame
|
|
|
string resPath = ResPathUtil.GetCardAnimationPath(_cardData.resources[_cardData.resIndex]);
|
|
|
if (Versions.Contains(resPath))
|
|
|
{
|
|
|
- _cardObj = DressUpUtil.CreateAnimationObj(resPath);
|
|
|
SceneController.AddObjectToView(_cardObj, _wrapper, _ui.m_comCard.m_comCardHolder.m_holder, resPath, out _cardObj, out _wrapper);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
if (_cardObj != null)
|