|
@@ -11,6 +11,9 @@ namespace UI.NewYearRedEnvelope
|
|
public Controller m_openType;
|
|
public Controller m_openType;
|
|
public GButton m_btnOpen;
|
|
public GButton m_btnOpen;
|
|
public GRichTextField m_txtTime;
|
|
public GRichTextField m_txtTime;
|
|
|
|
+ public UI_Button1 m_btnGet;
|
|
|
|
+ public UI_Button1 m_btnDoubleGet;
|
|
|
|
+ public GRichTextField m_textGetNum;
|
|
public const string URL = "ui://pt3t9f1ujsko0";
|
|
public const string URL = "ui://pt3t9f1ujsko0";
|
|
public const string PACKAGE_NAME = "NewYearRedEnvelope";
|
|
public const string PACKAGE_NAME = "NewYearRedEnvelope";
|
|
public const string RES_NAME = "NewYearRedEnvelopeUI";
|
|
public const string RES_NAME = "NewYearRedEnvelopeUI";
|
|
@@ -62,6 +65,9 @@ namespace UI.NewYearRedEnvelope
|
|
m_openType = comp.GetController("openType");
|
|
m_openType = comp.GetController("openType");
|
|
m_btnOpen = (GButton)comp.GetChild("btnOpen");
|
|
m_btnOpen = (GButton)comp.GetChild("btnOpen");
|
|
m_txtTime = (GRichTextField)comp.GetChild("txtTime");
|
|
m_txtTime = (GRichTextField)comp.GetChild("txtTime");
|
|
|
|
+ m_btnGet = (UI_Button1)UI_Button1.Create(comp.GetChild("btnGet"));
|
|
|
|
+ m_btnDoubleGet = (UI_Button1)UI_Button1.Create(comp.GetChild("btnDoubleGet"));
|
|
|
|
+ m_textGetNum = (GRichTextField)comp.GetChild("textGetNum");
|
|
}
|
|
}
|
|
public void Dispose(bool disposeTarget = false)
|
|
public void Dispose(bool disposeTarget = false)
|
|
{
|
|
{
|
|
@@ -69,6 +75,11 @@ namespace UI.NewYearRedEnvelope
|
|
m_openType = null;
|
|
m_openType = null;
|
|
m_btnOpen = null;
|
|
m_btnOpen = null;
|
|
m_txtTime = null;
|
|
m_txtTime = null;
|
|
|
|
+ m_btnGet.Dispose();
|
|
|
|
+ m_btnGet = null;
|
|
|
|
+ m_btnDoubleGet.Dispose();
|
|
|
|
+ m_btnDoubleGet = null;
|
|
|
|
+ m_textGetNum = null;
|
|
if(disposeTarget && target != null)
|
|
if(disposeTarget && target != null)
|
|
{
|
|
{
|
|
target.RemoveFromParent();
|
|
target.RemoveFromParent();
|