/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.MiniGame { public partial class UI_descItem { public GComponent target; public GLoader m_star1; public GLoader m_star2; public GLoader m_star3; public GTextField m_desc; public GLoader m_rewardIcon; public GTextField m_rewardNum; public const string URL = "ui://wgkh30qj806nh"; public const string PACKAGE_NAME = "MiniGame"; public const string RES_NAME = "descItem"; private static UI_descItem _proxy; public static UI_descItem Create(GObject gObject = null) { var ui = new UI_descItem(); 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_descItem Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_descItem(); } 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_star1 = (GLoader)comp.GetChild("star1"); m_star2 = (GLoader)comp.GetChild("star2"); m_star3 = (GLoader)comp.GetChild("star3"); m_desc = (GTextField)comp.GetChild("desc"); m_rewardIcon = (GLoader)comp.GetChild("rewardIcon"); m_rewardNum = (GTextField)comp.GetChild("rewardNum"); } public void Dispose(bool disposeTarget = false) { m_star1 = null; m_star2 = null; m_star3 = null; m_desc = null; m_rewardIcon = null; m_rewardNum = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }