|
@@ -9,8 +9,8 @@ namespace UI.Bag
|
|
public GComponent target;
|
|
public GComponent target;
|
|
public GLoader m_loaBg;
|
|
public GLoader m_loaBg;
|
|
public GComponent m_comValueBar;
|
|
public GComponent m_comValueBar;
|
|
- public GButton m_btnback;
|
|
|
|
public GList m_list;
|
|
public GList m_list;
|
|
|
|
+ public GButton m_btnBack;
|
|
public const string URL = "ui://2bsz6nelohbxn";
|
|
public const string URL = "ui://2bsz6nelohbxn";
|
|
public const string PACKAGE_NAME = "Bag";
|
|
public const string PACKAGE_NAME = "Bag";
|
|
public const string RES_NAME = "BagUI";
|
|
public const string RES_NAME = "BagUI";
|
|
@@ -60,15 +60,15 @@ namespace UI.Bag
|
|
{
|
|
{
|
|
m_loaBg = (GLoader)comp.GetChild("loaBg");
|
|
m_loaBg = (GLoader)comp.GetChild("loaBg");
|
|
m_comValueBar = (GComponent)comp.GetChild("comValueBar");
|
|
m_comValueBar = (GComponent)comp.GetChild("comValueBar");
|
|
- m_btnback = (GButton)comp.GetChild("btnback");
|
|
|
|
m_list = (GList)comp.GetChild("list");
|
|
m_list = (GList)comp.GetChild("list");
|
|
|
|
+ m_btnBack = (GButton)comp.GetChild("btnBack");
|
|
}
|
|
}
|
|
public void Dispose(bool disposeTarget = false)
|
|
public void Dispose(bool disposeTarget = false)
|
|
{
|
|
{
|
|
m_loaBg = null;
|
|
m_loaBg = null;
|
|
m_comValueBar = null;
|
|
m_comValueBar = null;
|
|
- m_btnback = null;
|
|
|
|
m_list = null;
|
|
m_list = null;
|
|
|
|
+ m_btnBack = null;
|
|
if(disposeTarget && target != null)
|
|
if(disposeTarget && target != null)
|
|
{
|
|
{
|
|
target.RemoveFromParent();
|
|
target.RemoveFromParent();
|