/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.DailyWelfare { public partial class UI_DailySupplyUI { public GComponent target; public UI_ComSupply m_comSupply0; public UI_ComSupply m_comSupply1; public GTextField m_txtGiftBag; public const string URL = "ui://t8nwuj7iqik1t"; public const string PACKAGE_NAME = "DailyWelfare"; public const string RES_NAME = "DailySupplyUI"; private static UI_DailySupplyUI _proxy; public static UI_DailySupplyUI Create(GObject gObject = null) { var ui = new UI_DailySupplyUI(); 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_DailySupplyUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_DailySupplyUI(); } 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_comSupply0 = (UI_ComSupply)UI_ComSupply.Create(comp.GetChild("comSupply0")); m_comSupply1 = (UI_ComSupply)UI_ComSupply.Create(comp.GetChild("comSupply1")); m_txtGiftBag = (GTextField)comp.GetChild("txtGiftBag"); } public void Dispose(bool disposeTarget = false) { m_comSupply0.Dispose(); m_comSupply0 = null; m_comSupply1.Dispose(); m_comSupply1 = null; m_txtGiftBag = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }