/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Card { public partial class UI_CardMoodUI { public GComponent target; public GLoader m_bg; public GLoader m_loaCard; public GButton m_btnBack; public UI_ComMoodContent m_comContent; public GButton m_btnPlay; public GComponent m_comProgress; public Transition m_t1; public const string URL = "ui://7l6lvkaylc718i"; public const string PACKAGE_NAME = "Card"; public const string RES_NAME = "CardMoodUI"; private static UI_CardMoodUI _proxy; public static UI_CardMoodUI Create(GObject gObject = null) { var ui = new UI_CardMoodUI(); 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_CardMoodUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_CardMoodUI(); } 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 = (GLoader)comp.GetChild("bg"); m_loaCard = (GLoader)comp.GetChild("loaCard"); m_btnBack = (GButton)comp.GetChild("btnBack"); m_comContent = (UI_ComMoodContent)UI_ComMoodContent.Create(comp.GetChild("comContent")); m_btnPlay = (GButton)comp.GetChild("btnPlay"); m_comProgress = (GComponent)comp.GetChild("comProgress"); m_t1 = comp.GetTransition("t1"); } public void Dispose(bool disposeTarget = false) { m_bg = null; m_loaCard = null; m_btnBack = null; m_comContent.Dispose(); m_comContent = null; m_btnPlay = null; m_comProgress = null; m_t1 = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }