|
@@ -12,12 +12,11 @@ namespace UI.LuckyBox
|
|
public GButton m_btnBack;
|
|
public GButton m_btnBack;
|
|
public GComponent m_valueBar;
|
|
public GComponent m_valueBar;
|
|
public GTextField m_txtTime;
|
|
public GTextField m_txtTime;
|
|
- public GButton m_btnLuckyDiscount;
|
|
|
|
|
|
+ public UI_Button9 m_btnLuckyDiscount;
|
|
public GButton m_btnGiftBag;
|
|
public GButton m_btnGiftBag;
|
|
public UI_ComBagTime m_comBagTime;
|
|
public UI_ComBagTime m_comBagTime;
|
|
public GButton m_btnShop;
|
|
public GButton m_btnShop;
|
|
public GButton m_btnReward;
|
|
public GButton m_btnReward;
|
|
- public Transition m_btnLuckyDiscount_loop;
|
|
|
|
public const string URL = "ui://drx9d1usmbf1tad";
|
|
public const string URL = "ui://drx9d1usmbf1tad";
|
|
public const string PACKAGE_NAME = "LuckyBox";
|
|
public const string PACKAGE_NAME = "LuckyBox";
|
|
public const string RES_NAME = "LuckyBoxActivityUI";
|
|
public const string RES_NAME = "LuckyBoxActivityUI";
|
|
@@ -70,12 +69,11 @@ namespace UI.LuckyBox
|
|
m_btnBack = (GButton)comp.GetChild("btnBack");
|
|
m_btnBack = (GButton)comp.GetChild("btnBack");
|
|
m_valueBar = (GComponent)comp.GetChild("valueBar");
|
|
m_valueBar = (GComponent)comp.GetChild("valueBar");
|
|
m_txtTime = (GTextField)comp.GetChild("txtTime");
|
|
m_txtTime = (GTextField)comp.GetChild("txtTime");
|
|
- m_btnLuckyDiscount = (GButton)comp.GetChild("btnLuckyDiscount");
|
|
|
|
|
|
+ m_btnLuckyDiscount = (UI_Button9)UI_Button9.Create(comp.GetChild("btnLuckyDiscount"));
|
|
m_btnGiftBag = (GButton)comp.GetChild("btnGiftBag");
|
|
m_btnGiftBag = (GButton)comp.GetChild("btnGiftBag");
|
|
m_comBagTime = (UI_ComBagTime)UI_ComBagTime.Create(comp.GetChild("comBagTime"));
|
|
m_comBagTime = (UI_ComBagTime)UI_ComBagTime.Create(comp.GetChild("comBagTime"));
|
|
m_btnShop = (GButton)comp.GetChild("btnShop");
|
|
m_btnShop = (GButton)comp.GetChild("btnShop");
|
|
m_btnReward = (GButton)comp.GetChild("btnReward");
|
|
m_btnReward = (GButton)comp.GetChild("btnReward");
|
|
- m_btnLuckyDiscount_loop = comp.GetTransition("btnLuckyDiscount_loop");
|
|
|
|
}
|
|
}
|
|
public void Dispose(bool disposeTarget = false)
|
|
public void Dispose(bool disposeTarget = false)
|
|
{
|
|
{
|
|
@@ -85,13 +83,13 @@ namespace UI.LuckyBox
|
|
m_btnBack = null;
|
|
m_btnBack = null;
|
|
m_valueBar = null;
|
|
m_valueBar = null;
|
|
m_txtTime = null;
|
|
m_txtTime = null;
|
|
|
|
+ m_btnLuckyDiscount.Dispose();
|
|
m_btnLuckyDiscount = null;
|
|
m_btnLuckyDiscount = null;
|
|
m_btnGiftBag = null;
|
|
m_btnGiftBag = null;
|
|
m_comBagTime.Dispose();
|
|
m_comBagTime.Dispose();
|
|
m_comBagTime = null;
|
|
m_comBagTime = null;
|
|
m_btnShop = null;
|
|
m_btnShop = null;
|
|
m_btnReward = null;
|
|
m_btnReward = null;
|
|
- m_btnLuckyDiscount_loop = null;
|
|
|
|
if(disposeTarget && target != null)
|
|
if(disposeTarget && target != null)
|
|
{
|
|
{
|
|
target.RemoveFromParent();
|
|
target.RemoveFromParent();
|