/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.XiuFang { public partial class UI_XiuFangUI { public GComponent target; public GLoader m_loaBg; public GButton m_btnBack; public UI_Component m_component; public const string URL = "ui://kv0ad4wy9xlo0"; public const string PACKAGE_NAME = "XiuFang"; public const string RES_NAME = "XiuFangUI"; private static UI_XiuFangUI _proxy; public static UI_XiuFangUI Create(GObject gObject = null) { var ui = new UI_XiuFangUI(); 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_XiuFangUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_XiuFangUI(); } 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_loaBg = (GLoader)comp.GetChild("loaBg"); m_btnBack = (GButton)comp.GetChild("btnBack"); m_component = (UI_Component)UI_Component.Create(comp.GetChild("component")); } public void Dispose(bool disposeTarget = false) { m_loaBg = null; m_btnBack = null; m_component.Dispose(); m_component = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }