/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.TimeTracing { public partial class UI_TimeTracingLevelItem { public GComponent target; public UI_FirstPlayeritem m_player; public GTextField m_levelName; public GLoader m_levelIcon; public const string URL = "ui://gayfh946l815i"; public const string PACKAGE_NAME = "TimeTracing"; public const string RES_NAME = "TimeTracingLevelItem"; private static UI_TimeTracingLevelItem _proxy; public static UI_TimeTracingLevelItem Create(GObject gObject = null) { var ui = new UI_TimeTracingLevelItem(); 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_TimeTracingLevelItem Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_TimeTracingLevelItem(); } 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_player = (UI_FirstPlayeritem)UI_FirstPlayeritem.Create(comp.GetChild("player")); m_levelName = (GTextField)comp.GetChild("levelName"); m_levelIcon = (GLoader)comp.GetChild("levelIcon"); } public void Dispose(bool disposeTarget = false) { m_player.Dispose(); m_player = null; m_levelName = null; m_levelIcon = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }