12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
- using FairyGUI;
- namespace UI.EnduringGiftBox
- {
- public partial class UI_ComLeftGiftBox
- {
- public GComponent target;
- public GLoader m_loaIcon;
- public UI_ComDiscount m_comDiscount;
- public UI_ComGouMaiGetText m_comGouMaiGetText;
- public const string URL = "ui://bdi1qe15qqhz1q";
- public const string PACKAGE_NAME = "EnduringGiftBox";
- public const string RES_NAME = "ComLeftGiftBox";
- private static UI_ComLeftGiftBox _proxy;
- public static UI_ComLeftGiftBox Create(GObject gObject = null)
- {
- var ui = new UI_ComLeftGiftBox();
- 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_ComLeftGiftBox Proxy(GObject gObject = null)
- {
- if(_proxy == null)
- {
- _proxy = new UI_ComLeftGiftBox();
- }
- 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_loaIcon = (GLoader)comp.GetChild("loaIcon");
- m_comDiscount = (UI_ComDiscount)UI_ComDiscount.Create(comp.GetChild("comDiscount"));
- m_comGouMaiGetText = (UI_ComGouMaiGetText)UI_ComGouMaiGetText.Create(comp.GetChild("comGouMaiGetText"));
- }
- public void Dispose(bool disposeTarget = false)
- {
- m_loaIcon = null;
- m_comDiscount.Dispose();
- m_comDiscount = null;
- m_comGouMaiGetText.Dispose();
- m_comGouMaiGetText = null;
- if(disposeTarget && target != null)
- {
- target.RemoveFromParent();
- target.Dispose();
- }
- target = null;
- }
- }
- }
|