/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.CommonGame { public partial class UI_BuyTipsUI { public GComponent target; public GImage m_bg; public GTextField m_txtNeed; public GTextField m_txtCost; public GLoader m_loaNeed; public GButton m_btnCancel; public GButton m_btnSure; public const string URL = "ui://eg2y0ldpds629g"; public const string PACKAGE_NAME = "CommonGame"; public const string RES_NAME = "BuyTipsUI"; private static UI_BuyTipsUI _proxy; public static UI_BuyTipsUI Create(GObject gObject = null) { var ui = new UI_BuyTipsUI(); 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_BuyTipsUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_BuyTipsUI(); } 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 = (GImage)comp.GetChild("bg"); m_txtNeed = (GTextField)comp.GetChild("txtNeed"); m_txtCost = (GTextField)comp.GetChild("txtCost"); m_loaNeed = (GLoader)comp.GetChild("loaNeed"); m_btnCancel = (GButton)comp.GetChild("btnCancel"); m_btnSure = (GButton)comp.GetChild("btnSure"); } public void Dispose(bool disposeTarget = false) { m_bg = null; m_txtNeed = null; m_txtCost = null; m_loaNeed = null; m_btnCancel = null; m_btnSure = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }