/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.ActivityAfternoonTea { public partial class UI_SyntheticItemUI { public GComponent target; public Controller m_btnType; public GComponent m_item1; public GComponent m_item2; public GComponent m_item3; public GButton m_btnMake; public GButton m_btnGet; public const string URL = "ui://wpsqkdbzyo402m"; public const string PACKAGE_NAME = "ActivityAfternoonTea"; public const string RES_NAME = "SyntheticItemUI"; private static UI_SyntheticItemUI _proxy; public static UI_SyntheticItemUI Create(GObject gObject = null) { var ui = new UI_SyntheticItemUI(); 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_SyntheticItemUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_SyntheticItemUI(); } 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_btnType = comp.GetController("btnType"); m_item1 = (GComponent)comp.GetChild("item1"); m_item2 = (GComponent)comp.GetChild("item2"); m_item3 = (GComponent)comp.GetChild("item3"); m_btnMake = (GButton)comp.GetChild("btnMake"); m_btnGet = (GButton)comp.GetChild("btnGet"); } public void Dispose(bool disposeTarget = false) { m_btnType = null; m_item1 = null; m_item2 = null; m_item3 = null; m_btnMake = null; m_btnGet = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }