12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
- using FairyGUI;
- namespace UI.XiuFang
- {
- public partial class UI_Component
- {
- public GComponent target;
- public UI_Component1 m_btnClothingShop;
- public UI_Component1 m_btnSuitSynthetic;
- public UI_Component1 m_btnClothingUpgrade;
- public UI_Component1 m_btnDecompose;
- public UI_Component1 m_btnGYP;
- public const string URL = "ui://kv0ad4wywlc28";
- public const string PACKAGE_NAME = "XiuFang";
- public const string RES_NAME = "Component";
- private static UI_Component _proxy;
- public static UI_Component Create(GObject gObject = null)
- {
- var ui = new UI_Component();
- 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_Component Proxy(GObject gObject = null)
- {
- if(_proxy == null)
- {
- _proxy = new UI_Component();
- }
- 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_btnClothingShop = (UI_Component1)UI_Component1.Create(comp.GetChild("btnClothingShop"));
- m_btnSuitSynthetic = (UI_Component1)UI_Component1.Create(comp.GetChild("btnSuitSynthetic"));
- m_btnClothingUpgrade = (UI_Component1)UI_Component1.Create(comp.GetChild("btnClothingUpgrade"));
- m_btnDecompose = (UI_Component1)UI_Component1.Create(comp.GetChild("btnDecompose"));
- m_btnGYP = (UI_Component1)UI_Component1.Create(comp.GetChild("btnGYP"));
- }
- public void Dispose(bool disposeTarget = false)
- {
- m_btnClothingShop.Dispose();
- m_btnClothingShop = null;
- m_btnSuitSynthetic.Dispose();
- m_btnSuitSynthetic = null;
- m_btnClothingUpgrade.Dispose();
- m_btnClothingUpgrade = null;
- m_btnDecompose.Dispose();
- m_btnDecompose = null;
- m_btnGYP.Dispose();
- m_btnGYP = null;
- if(disposeTarget && target != null)
- {
- target.RemoveFromParent();
- target.Dispose();
- }
- target = null;
- }
- }
- }
|