/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.LuckyBox { public partial class UI_LuckyBoxCardUI { public GComponent target; public GGraph m_bg; public UI_ComCard m_comCard; public GButton m_btnPass; public Transition m_t_open; public Transition m_t_close; public const string URL = "ui://drx9d1usqdrt19"; public const string PACKAGE_NAME = "LuckyBox"; public const string RES_NAME = "LuckyBoxCardUI"; private static UI_LuckyBoxCardUI _proxy; public static UI_LuckyBoxCardUI Create(GObject gObject = null) { var ui = new UI_LuckyBoxCardUI(); 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_LuckyBoxCardUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_LuckyBoxCardUI(); } 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_bg = (GGraph)comp.GetChild("bg"); m_comCard = (UI_ComCard)UI_ComCard.Create(comp.GetChild("comCard")); m_btnPass = (GButton)comp.GetChild("btnPass"); m_t_open = comp.GetTransition("t_open"); m_t_close = comp.GetTransition("t_close"); } public void Dispose(bool disposeTarget = false) { m_bg = null; m_comCard.Dispose(); m_comCard = null; m_btnPass = null; m_t_open = null; m_t_close = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }