/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.Card { public partial class UI_ComStarConsume { public GComponent target; public GLoader m_loaItem; public GTextField m_txtNeedCount; public GTextField m_txtHasCount; public GButton m_btnPlus; public const string URL = "ui://7l6lvkaywr9a82"; public const string PACKAGE_NAME = "Card"; public const string RES_NAME = "ComStarConsume"; private static UI_ComStarConsume _proxy; public static UI_ComStarConsume Create(GObject gObject = null) { var ui = new UI_ComStarConsume(); 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_ComStarConsume Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ComStarConsume(); } 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_loaItem = (GLoader)comp.GetChild("loaItem"); m_txtNeedCount = (GTextField)comp.GetChild("txtNeedCount"); m_txtHasCount = (GTextField)comp.GetChild("txtHasCount"); m_btnPlus = (GButton)comp.GetChild("btnPlus"); } public void Dispose(bool disposeTarget = false) { m_loaItem = null; m_txtNeedCount = null; m_txtHasCount = null; m_btnPlus = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }