|
@@ -9,9 +9,9 @@ namespace UI.DressUp
|
|
|
public GComponent target;
|
|
|
public GLoader m_btnBg;
|
|
|
public GButton m_btnBack;
|
|
|
+ public UI_ComChecked m_comSelectBox;
|
|
|
public GButton m_btnChoose;
|
|
|
public UI_ComSelect m_ComSelectRes;
|
|
|
- public UI_ComChecked m_comSelectBox;
|
|
|
public const string URL = "ui://mbo439wbbe944a";
|
|
|
public const string PACKAGE_NAME = "DressUp";
|
|
|
public const string RES_NAME = "PhotographUI";
|
|
@@ -61,19 +61,19 @@ namespace UI.DressUp
|
|
|
{
|
|
|
m_btnBg = (GLoader)comp.GetChild("btnBg");
|
|
|
m_btnBack = (GButton)comp.GetChild("btnBack");
|
|
|
+ m_comSelectBox = (UI_ComChecked)UI_ComChecked.Create(comp.GetChild("comSelectBox"));
|
|
|
m_btnChoose = (GButton)comp.GetChild("btnChoose");
|
|
|
m_ComSelectRes = (UI_ComSelect)UI_ComSelect.Create(comp.GetChild("ComSelectRes"));
|
|
|
- m_comSelectBox = (UI_ComChecked)UI_ComChecked.Create(comp.GetChild("comSelectBox"));
|
|
|
}
|
|
|
public void Dispose(bool disposeTarget = false)
|
|
|
{
|
|
|
m_btnBg = null;
|
|
|
m_btnBack = null;
|
|
|
+ m_comSelectBox.Dispose();
|
|
|
+ m_comSelectBox = null;
|
|
|
m_btnChoose = null;
|
|
|
m_ComSelectRes.Dispose();
|
|
|
m_ComSelectRes = null;
|
|
|
- m_comSelectBox.Dispose();
|
|
|
- m_comSelectBox = null;
|
|
|
if(disposeTarget && target != null)
|
|
|
{
|
|
|
target.RemoveFromParent();
|