/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.LuckyBox { public partial class UI_LuckyBoxActivityUI { public GComponent target; public UI_ComBox m_comBox; public GButton m_btnBack; public GComponent m_valueBar; public GTextField m_txtTime; public GButton m_btnReward; public GButton m_btnShop; public GButton m_btnGiftBag; public UI_ComBagTime m_comBagTime; public GTextField m_txtCount; public const string URL = "ui://drx9d1usmbf1tad"; public const string PACKAGE_NAME = "LuckyBox"; public const string RES_NAME = "LuckyBoxActivityUI"; private static UI_LuckyBoxActivityUI _proxy; public static UI_LuckyBoxActivityUI Create(GObject gObject = null) { var ui = new UI_LuckyBoxActivityUI(); if(gObject == null) ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GComponent)gObject; ui.Init(ui.target); return ui; } public static UI_LuckyBoxActivityUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_LuckyBoxActivityUI(); } var ui = _proxy; if(gObject == null) ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GComponent)gObject; ui.Init(ui.target); return ui; } public static void ProxyEnd() { if (_proxy != null) { _proxy.Dispose(); } } public static void ClearProxy() { ProxyEnd(); _proxy = null; } private void Init(GComponent comp) { m_comBox = (UI_ComBox)UI_ComBox.Create(comp.GetChild("comBox")); m_btnBack = (GButton)comp.GetChild("btnBack"); m_valueBar = (GComponent)comp.GetChild("valueBar"); m_txtTime = (GTextField)comp.GetChild("txtTime"); m_btnReward = (GButton)comp.GetChild("btnReward"); m_btnShop = (GButton)comp.GetChild("btnShop"); m_btnGiftBag = (GButton)comp.GetChild("btnGiftBag"); m_comBagTime = (UI_ComBagTime)UI_ComBagTime.Create(comp.GetChild("comBagTime")); m_txtCount = (GTextField)comp.GetChild("txtCount"); } public void Dispose(bool disposeTarget = false) { m_comBox.Dispose(); m_comBox = null; m_btnBack = null; m_valueBar = null; m_txtTime = null; m_btnReward = null; m_btnShop = null; m_btnGiftBag = null; m_comBagTime.Dispose(); m_comBagTime = null; m_txtCount = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }