/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.LuckyBox { public partial class UI_LuckyBoxWishUI { public GComponent target; public Controller m_showType; public GButton m_btnWish1; public GButton m_btnWish2; public GButton m_btnRule; public GLoader m_loaProperty1; public GLoader m_loaProperty2; public GButton m_btnShow1; public GButton m_btnShow2; public const string URL = "ui://drx9d1usnlyjtqb"; public const string PACKAGE_NAME = "LuckyBox"; public const string RES_NAME = "LuckyBoxWishUI"; private static UI_LuckyBoxWishUI _proxy; public static UI_LuckyBoxWishUI Create(GObject gObject = null) { var ui = new UI_LuckyBoxWishUI(); 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_LuckyBoxWishUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_LuckyBoxWishUI(); } 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_showType = comp.GetController("showType"); m_btnWish1 = (GButton)comp.GetChild("btnWish1"); m_btnWish2 = (GButton)comp.GetChild("btnWish2"); m_btnRule = (GButton)comp.GetChild("btnRule"); m_loaProperty1 = (GLoader)comp.GetChild("loaProperty1"); m_loaProperty2 = (GLoader)comp.GetChild("loaProperty2"); m_btnShow1 = (GButton)comp.GetChild("btnShow1"); m_btnShow2 = (GButton)comp.GetChild("btnShow2"); } public void Dispose(bool disposeTarget = false) { m_showType = null; m_btnWish1 = null; m_btnWish2 = null; m_btnRule = null; m_loaProperty1 = null; m_loaProperty2 = null; m_btnShow1 = null; m_btnShow2 = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }