|
@@ -8,6 +8,7 @@ namespace UI.CommonGame
|
|
{
|
|
{
|
|
public GComponent target;
|
|
public GComponent target;
|
|
public Controller m_c1;
|
|
public Controller m_c1;
|
|
|
|
+ public Controller m_style;
|
|
public GLoader m_loaIcon;
|
|
public GLoader m_loaIcon;
|
|
public GTextField m_txtNeed;
|
|
public GTextField m_txtNeed;
|
|
public const string URL = "ui://eg2y0ldpn3xha1";
|
|
public const string URL = "ui://eg2y0ldpn3xha1";
|
|
@@ -58,12 +59,14 @@ namespace UI.CommonGame
|
|
private void Init(GComponent comp)
|
|
private void Init(GComponent comp)
|
|
{
|
|
{
|
|
m_c1 = comp.GetController("c1");
|
|
m_c1 = comp.GetController("c1");
|
|
|
|
+ m_style = comp.GetController("style");
|
|
m_loaIcon = (GLoader)comp.GetChild("loaIcon");
|
|
m_loaIcon = (GLoader)comp.GetChild("loaIcon");
|
|
m_txtNeed = (GTextField)comp.GetChild("txtNeed");
|
|
m_txtNeed = (GTextField)comp.GetChild("txtNeed");
|
|
}
|
|
}
|
|
public void Dispose(bool disposeTarget = false)
|
|
public void Dispose(bool disposeTarget = false)
|
|
{
|
|
{
|
|
m_c1 = null;
|
|
m_c1 = null;
|
|
|
|
+ m_style = null;
|
|
m_loaIcon = null;
|
|
m_loaIcon = null;
|
|
m_txtNeed = null;
|
|
m_txtNeed = null;
|
|
if(disposeTarget && target != null)
|
|
if(disposeTarget && target != null)
|