/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.BlindBox { public partial class UI_BlindBoxUI { public GComponent target; public GGraph m_effect; public GButton m_ruleBtn; public GTextField m_txtTime; public GTextField m_txtDesc; public GList m_boxList; public GList m_rewardList; public GLoader m_hiddenItem; public GGroup m_reward; public UI_Button1 m_buyBtn; public GButton m_backBtn; public GGroup m_show; public Transition m_t0; public Transition m_t1; public const string URL = "ui://zxtyrwszcf1a0"; public const string PACKAGE_NAME = "BlindBox"; public const string RES_NAME = "BlindBoxUI"; private static UI_BlindBoxUI _proxy; public static UI_BlindBoxUI Create(GObject gObject = null) { var ui = new UI_BlindBoxUI(); 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_BlindBoxUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_BlindBoxUI(); } 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_effect = (GGraph)comp.GetChild("effect"); m_ruleBtn = (GButton)comp.GetChild("ruleBtn"); m_txtTime = (GTextField)comp.GetChild("txtTime"); m_txtDesc = (GTextField)comp.GetChild("txtDesc"); m_boxList = (GList)comp.GetChild("boxList"); m_rewardList = (GList)comp.GetChild("rewardList"); m_hiddenItem = (GLoader)comp.GetChild("hiddenItem"); m_reward = (GGroup)comp.GetChild("reward"); m_buyBtn = (UI_Button1)UI_Button1.Create(comp.GetChild("buyBtn")); m_backBtn = (GButton)comp.GetChild("backBtn"); m_show = (GGroup)comp.GetChild("show"); m_t0 = comp.GetTransition("t0"); m_t1 = comp.GetTransition("t1"); } public void Dispose(bool disposeTarget = false) { m_effect = null; m_ruleBtn = null; m_txtTime = null; m_txtDesc = null; m_boxList = null; m_rewardList = null; m_hiddenItem = null; m_reward = null; m_buyBtn.Dispose(); m_buyBtn = null; m_backBtn = null; m_show = null; m_t0 = null; m_t1 = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }