|
@@ -8,9 +8,7 @@ namespace UI.CommonGame
|
|
{
|
|
{
|
|
public GComponent target;
|
|
public GComponent target;
|
|
public GLoader m_loaIcon;
|
|
public GLoader m_loaIcon;
|
|
- public GTextField m_txtHas;
|
|
|
|
- public GTextField m_txtLine;
|
|
|
|
- public GTextField m_txtNeed;
|
|
|
|
|
|
+ public GTextField m_txtCount;
|
|
public const string URL = "ui://eg2y0ldpojlz61";
|
|
public const string URL = "ui://eg2y0ldpojlz61";
|
|
public const string PACKAGE_NAME = "CommonGame";
|
|
public const string PACKAGE_NAME = "CommonGame";
|
|
public const string RES_NAME = "ComCostCurrencyWithHas";
|
|
public const string RES_NAME = "ComCostCurrencyWithHas";
|
|
@@ -59,16 +57,12 @@ namespace UI.CommonGame
|
|
private void Init(GComponent comp)
|
|
private void Init(GComponent comp)
|
|
{
|
|
{
|
|
m_loaIcon = (GLoader)comp.GetChild("loaIcon");
|
|
m_loaIcon = (GLoader)comp.GetChild("loaIcon");
|
|
- m_txtHas = (GTextField)comp.GetChild("txtHas");
|
|
|
|
- m_txtLine = (GTextField)comp.GetChild("txtLine");
|
|
|
|
- m_txtNeed = (GTextField)comp.GetChild("txtNeed");
|
|
|
|
|
|
+ m_txtCount = (GTextField)comp.GetChild("txtCount");
|
|
}
|
|
}
|
|
public void Dispose(bool disposeTarget = false)
|
|
public void Dispose(bool disposeTarget = false)
|
|
{
|
|
{
|
|
m_loaIcon = null;
|
|
m_loaIcon = null;
|
|
- m_txtHas = null;
|
|
|
|
- m_txtLine = null;
|
|
|
|
- m_txtNeed = null;
|
|
|
|
|
|
+ m_txtCount = null;
|
|
if(disposeTarget && target != null)
|
|
if(disposeTarget && target != null)
|
|
{
|
|
{
|
|
target.RemoveFromParent();
|
|
target.RemoveFromParent();
|