/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.ActivityGetYuanXiao { public partial class UI_taskItem { public GComponent target; public Controller m_c1; public Controller m_c2; public GButton m_btnGet; public GTextField m_desc; public GList m_rewardList; public GButton m_btnGo; public GTextField m_txtCount; public const string URL = "ui://tguohf7uhmj62r"; public const string PACKAGE_NAME = "ActivityGetYuanXiao"; public const string RES_NAME = "taskItem"; private static UI_taskItem _proxy; public static UI_taskItem Create(GObject gObject = null) { var ui = new UI_taskItem(); 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_taskItem Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_taskItem(); } 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_c1 = comp.GetController("c1"); m_c2 = comp.GetController("c2"); m_btnGet = (GButton)comp.GetChild("btnGet"); m_desc = (GTextField)comp.GetChild("desc"); m_rewardList = (GList)comp.GetChild("rewardList"); m_btnGo = (GButton)comp.GetChild("btnGo"); m_txtCount = (GTextField)comp.GetChild("txtCount"); } public void Dispose(bool disposeTarget = false) { m_c1 = null; m_c2 = null; m_btnGet = null; m_desc = null; m_rewardList = null; m_btnGo = null; m_txtCount = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }