/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.TimeTracing { public partial class UI_TimeTracingPreShowItem { public GComponent target; public GComponent m_item; public GLoader m_Icon; public GImage m_descBg; public GTextField m_desc; public const string URL = "ui://gayfh946iwcl21"; public const string PACKAGE_NAME = "TimeTracing"; public const string RES_NAME = "TimeTracingPreShowItem"; private static UI_TimeTracingPreShowItem _proxy; public static UI_TimeTracingPreShowItem Create(GObject gObject = null) { var ui = new UI_TimeTracingPreShowItem(); 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_TimeTracingPreShowItem Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_TimeTracingPreShowItem(); } 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_item = (GComponent)comp.GetChild("item"); m_Icon = (GLoader)comp.GetChild("Icon"); m_descBg = (GImage)comp.GetChild("descBg"); m_desc = (GTextField)comp.GetChild("desc"); } public void Dispose(bool disposeTarget = false) { m_item = null; m_Icon = null; m_descBg = null; m_desc = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }