/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.NewYearRedEnvelope { public partial class UI_NewYearRedEnvelopeUI { public GComponent target; public Controller m_titleImgType; public Controller m_openType; public GButton m_btnOpen; public GRichTextField m_txtTime; public UI_Button1 m_btnGet; public UI_Button1 m_btnDoubleGet; public GRichTextField m_textGetNum; public const string URL = "ui://pt3t9f1ujsko0"; public const string PACKAGE_NAME = "NewYearRedEnvelope"; public const string RES_NAME = "NewYearRedEnvelopeUI"; private static UI_NewYearRedEnvelopeUI _proxy; public static UI_NewYearRedEnvelopeUI Create(GObject gObject = null) { var ui = new UI_NewYearRedEnvelopeUI(); 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_NewYearRedEnvelopeUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_NewYearRedEnvelopeUI(); } 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_titleImgType = comp.GetController("titleImgType"); m_openType = comp.GetController("openType"); m_btnOpen = (GButton)comp.GetChild("btnOpen"); m_txtTime = (GRichTextField)comp.GetChild("txtTime"); m_btnGet = (UI_Button1)UI_Button1.Create(comp.GetChild("btnGet")); m_btnDoubleGet = (UI_Button1)UI_Button1.Create(comp.GetChild("btnDoubleGet")); m_textGetNum = (GRichTextField)comp.GetChild("textGetNum"); } public void Dispose(bool disposeTarget = false) { m_titleImgType = null; m_openType = null; m_btnOpen = null; m_txtTime = null; m_btnGet.Dispose(); m_btnGet = null; m_btnDoubleGet.Dispose(); m_btnDoubleGet = null; m_textGetNum = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }