/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.League { public partial class UI_ComPary { public GComponent target; public GLoader m_LoaIcon; public GTextField m_txtName; public UI_ComGain m_comGain; public UI_ComGain m_comFirstGain; public GButton m_btnPray; public UI_ComCurrency m_comCurrency; public const string URL = "ui://tw70qm9drv0929"; public const string PACKAGE_NAME = "League"; public const string RES_NAME = "ComPary"; private static UI_ComPary _proxy; public static UI_ComPary Create(GObject gObject = null) { var ui = new UI_ComPary(); 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_ComPary Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ComPary(); } 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_LoaIcon = (GLoader)comp.GetChild("LoaIcon"); m_txtName = (GTextField)comp.GetChild("txtName"); m_comGain = (UI_ComGain)UI_ComGain.Create(comp.GetChild("comGain")); m_comFirstGain = (UI_ComGain)UI_ComGain.Create(comp.GetChild("comFirstGain")); m_btnPray = (GButton)comp.GetChild("btnPray"); m_comCurrency = (UI_ComCurrency)UI_ComCurrency.Create(comp.GetChild("comCurrency")); } public void Dispose(bool disposeTarget = false) { m_LoaIcon = null; m_txtName = null; m_comGain.Dispose(); m_comGain = null; m_comFirstGain.Dispose(); m_comFirstGain = null; m_btnPray = null; m_comCurrency.Dispose(); m_comCurrency = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }