/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.LuckyBox { public partial class UI_Component2 { public GComponent target; public Controller m_c1; public GLoader m_icon; public GLoader m_rarity; public GImage m_imgNew; public GTextField m_txtName; public const string URL = "ui://drx9d1usdcrotaa"; public const string PACKAGE_NAME = "LuckyBox"; public const string RES_NAME = "Component2"; private static UI_Component2 _proxy; public static UI_Component2 Create(GObject gObject = null) { var ui = new UI_Component2(); 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_Component2 Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_Component2(); } 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_icon = (GLoader)comp.GetChild("icon"); m_rarity = (GLoader)comp.GetChild("rarity"); m_imgNew = (GImage)comp.GetChild("imgNew"); m_txtName = (GTextField)comp.GetChild("txtName"); } public void Dispose(bool disposeTarget = false) { m_c1 = null; m_icon = null; m_rarity = null; m_imgNew = null; m_txtName = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }