/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.LuckyBox { public partial class UI_LuckyBoxUI { public GComponent target; public GList m_listBg; public GComponent m_valueBar; public GButton m_btnBack; public GButton m_btnHome; public GGroup m_grpTop; public GButton m_btnLeft; public GButton m_btnRight; public const string URL = "ui://drx9d1uswono2q"; public const string PACKAGE_NAME = "LuckyBox"; public const string RES_NAME = "LuckyBoxUI"; private static UI_LuckyBoxUI _proxy; public static UI_LuckyBoxUI Create(GObject gObject = null) { var ui = new UI_LuckyBoxUI(); 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_LuckyBoxUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_LuckyBoxUI(); } 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_listBg = (GList)comp.GetChild("listBg"); m_valueBar = (GComponent)comp.GetChild("valueBar"); m_btnBack = (GButton)comp.GetChild("btnBack"); m_btnHome = (GButton)comp.GetChild("btnHome"); m_grpTop = (GGroup)comp.GetChild("grpTop"); m_btnLeft = (GButton)comp.GetChild("btnLeft"); m_btnRight = (GButton)comp.GetChild("btnRight"); } public void Dispose(bool disposeTarget = false) { m_listBg = null; m_valueBar = null; m_btnBack = null; m_btnHome = null; m_grpTop = null; m_btnLeft = null; m_btnRight = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }