1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
- using FairyGUI;
- namespace UI.CreateRole
- {
- public partial class UI_Envelope
- {
- public GComponent target;
- public Controller m_button;
- public GGraph m_playerClickTipEffectHolder;
- public GGraph m_LiuSuEffectHolder;
- public GGraph m_flowerEffectHolder;
- public GGraph m_XINFEffectHolder;
- public const string URL = "ui://5al8chbdsq1qk";
- public const string PACKAGE_NAME = "CreateRole";
- public const string RES_NAME = "Envelope";
- private static UI_Envelope _proxy;
- public static UI_Envelope Create(GObject gObject = null)
- {
- var ui = new UI_Envelope();
- 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_Envelope Proxy(GObject gObject = null)
- {
- if(_proxy == null)
- {
- _proxy = new UI_Envelope();
- }
- 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_button = comp.GetController("button");
- m_playerClickTipEffectHolder = (GGraph)comp.GetChild("playerClickTipEffectHolder");
- m_LiuSuEffectHolder = (GGraph)comp.GetChild("LiuSuEffectHolder");
- m_flowerEffectHolder = (GGraph)comp.GetChild("flowerEffectHolder");
- m_XINFEffectHolder = (GGraph)comp.GetChild("XINFEffectHolder");
- }
- public void Dispose(bool disposeTarget = false)
- {
- m_button = null;
- m_playerClickTipEffectHolder = null;
- m_LiuSuEffectHolder = null;
- m_flowerEffectHolder = null;
- m_XINFEffectHolder = null;
- if(disposeTarget && target != null)
- {
- target.RemoveFromParent();
- target.Dispose();
- }
- target = null;
- }
- }
- }
|