/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.EnduringGiftBox { public partial class UI_ComRewardIconItem { public GComponent target; public Controller m_c1; public GImage m_bagYellow; public GImage m_bagBlue; public GLoader m_loaIcon; public GImage m_bagYellowEx; public GImage m_bagBlueEx; public GTextField m_num; public GGraph m_holderItem; public const string URL = "ui://bdi1qe15qqhz1g"; public const string PACKAGE_NAME = "EnduringGiftBox"; public const string RES_NAME = "ComRewardIconItem"; private static UI_ComRewardIconItem _proxy; public static UI_ComRewardIconItem Create(GObject gObject = null) { var ui = new UI_ComRewardIconItem(); 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_ComRewardIconItem Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_ComRewardIconItem(); } 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_c1 = comp.GetController("c1"); m_bagYellow = (GImage)comp.GetChild("bagYellow"); m_bagBlue = (GImage)comp.GetChild("bagBlue"); m_loaIcon = (GLoader)comp.GetChild("loaIcon"); m_bagYellowEx = (GImage)comp.GetChild("bagYellowEx"); m_bagBlueEx = (GImage)comp.GetChild("bagBlueEx"); m_num = (GTextField)comp.GetChild("num"); m_holderItem = (GGraph)comp.GetChild("holderItem"); } public void Dispose(bool disposeTarget = false) { m_c1 = null; m_bagYellow = null; m_bagBlue = null; m_loaIcon = null; m_bagYellowEx = null; m_bagBlueEx = null; m_num = null; m_holderItem = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }