/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.CommonGame { public partial class UI_ComItem { public GComponent target; public GLoader m_loaIcon; public GTextField m_txtName; public GTextField m_txtCount; public GImage m_imgGot; public GTextField m_txtHasCount; public GLoader m_loaRarity; public GLoader m_loaShouTongReward; public const string URL = "ui://eg2y0ldpj48o98"; public const string PACKAGE_NAME = "CommonGame"; public const string RES_NAME = "ComItem"; private static UI_ComItem _proxy; public static UI_ComItem Create(GObject gObject = null) { var ui = new UI_ComItem(); 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_ComItem Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ComItem(); } 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_txtCount = (GTextField)comp.GetChild("txtCount"); m_imgGot = (GImage)comp.GetChild("imgGot"); m_txtHasCount = (GTextField)comp.GetChild("txtHasCount"); m_loaRarity = (GLoader)comp.GetChild("loaRarity"); m_loaShouTongReward = (GLoader)comp.GetChild("loaShouTongReward"); } public void Dispose(bool disposeTarget = false) { m_loaIcon = null; m_txtName = null; m_txtCount = null; m_imgGot = null; m_txtHasCount = null; m_loaRarity = null; m_loaShouTongReward = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }