|
@@ -22,7 +22,6 @@ namespace UI.ClothingFoster
|
|
|
public GButton m_btnPropertyShow;
|
|
|
public GList m_listProperty;
|
|
|
public GList m_listFoster;
|
|
|
- public UI_comFosterAni m_comFosterAni;
|
|
|
public GGroup m_grpFoster;
|
|
|
public GTextField m_txtRenewProperty;
|
|
|
public GComponent m_comRenewCost;
|
|
@@ -34,6 +33,7 @@ namespace UI.ClothingFoster
|
|
|
public GTextField m_txtRenewShow;
|
|
|
public UI_ComRenewRewardGet m_comRenewRewardGet;
|
|
|
public GGroup m_grpRenewFinish;
|
|
|
+ public UI_comFosterAni m_comFosterAni;
|
|
|
public const string URL = "ui://uicwtr5bpy5gf";
|
|
|
public const string PACKAGE_NAME = "ClothingFoster";
|
|
|
public const string RES_NAME = "SuitUI";
|
|
@@ -96,7 +96,6 @@ namespace UI.ClothingFoster
|
|
|
m_btnPropertyShow = (GButton)comp.GetChild("btnPropertyShow");
|
|
|
m_listProperty = (GList)comp.GetChild("listProperty");
|
|
|
m_listFoster = (GList)comp.GetChild("listFoster");
|
|
|
- m_comFosterAni = (UI_comFosterAni)UI_comFosterAni.Create(comp.GetChild("comFosterAni"));
|
|
|
m_grpFoster = (GGroup)comp.GetChild("grpFoster");
|
|
|
m_txtRenewProperty = (GTextField)comp.GetChild("txtRenewProperty");
|
|
|
m_comRenewCost = (GComponent)comp.GetChild("comRenewCost");
|
|
@@ -108,6 +107,7 @@ namespace UI.ClothingFoster
|
|
|
m_txtRenewShow = (GTextField)comp.GetChild("txtRenewShow");
|
|
|
m_comRenewRewardGet = (UI_ComRenewRewardGet)UI_ComRenewRewardGet.Create(comp.GetChild("comRenewRewardGet"));
|
|
|
m_grpRenewFinish = (GGroup)comp.GetChild("grpRenewFinish");
|
|
|
+ m_comFosterAni = (UI_comFosterAni)UI_comFosterAni.Create(comp.GetChild("comFosterAni"));
|
|
|
}
|
|
|
public void Dispose(bool disposeTarget = false)
|
|
|
{
|
|
@@ -127,8 +127,6 @@ namespace UI.ClothingFoster
|
|
|
m_btnPropertyShow = null;
|
|
|
m_listProperty = null;
|
|
|
m_listFoster = null;
|
|
|
- m_comFosterAni.Dispose();
|
|
|
- m_comFosterAni = null;
|
|
|
m_grpFoster = null;
|
|
|
m_txtRenewProperty = null;
|
|
|
m_comRenewCost = null;
|
|
@@ -142,6 +140,8 @@ namespace UI.ClothingFoster
|
|
|
m_comRenewRewardGet.Dispose();
|
|
|
m_comRenewRewardGet = null;
|
|
|
m_grpRenewFinish = null;
|
|
|
+ m_comFosterAni.Dispose();
|
|
|
+ m_comFosterAni = null;
|
|
|
if(disposeTarget && target != null)
|
|
|
{
|
|
|
target.RemoveFromParent();
|