UI_ComLeftGiftBox.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.EnduringGiftBox
  4. {
  5. public partial class UI_ComLeftGiftBox
  6. {
  7. public GComponent target;
  8. public GLoader m_loaIcon;
  9. public UI_ComDiscount m_comDiscount;
  10. public UI_ComGouMaiGetText m_comGouMaiGetText;
  11. public const string URL = "ui://bdi1qe15qqhz1q";
  12. public const string PACKAGE_NAME = "EnduringGiftBox";
  13. public const string RES_NAME = "ComLeftGiftBox";
  14. private static UI_ComLeftGiftBox _proxy;
  15. public static UI_ComLeftGiftBox Create(GObject gObject = null)
  16. {
  17. var ui = new UI_ComLeftGiftBox();
  18. if(gObject == null)
  19. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  20. else
  21. ui.target = (GComponent)gObject;
  22. ui.Init(ui.target);
  23. return ui;
  24. }
  25. public static UI_ComLeftGiftBox Proxy(GObject gObject = null)
  26. {
  27. if(_proxy == null)
  28. {
  29. _proxy = new UI_ComLeftGiftBox();
  30. }
  31. var ui = _proxy;
  32. if(gObject == null)
  33. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  34. else
  35. ui.target = (GComponent)gObject;
  36. ui.Init(ui.target);
  37. return ui;
  38. }
  39. public static void ProxyEnd()
  40. {
  41. if (_proxy != null)
  42. {
  43. _proxy.Dispose();
  44. }
  45. }
  46. public static void ClearProxy()
  47. {
  48. ProxyEnd();
  49. _proxy = null;
  50. }
  51. private void Init(GComponent comp)
  52. {
  53. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  54. m_comDiscount = (UI_ComDiscount)UI_ComDiscount.Create(comp.GetChild("comDiscount"));
  55. m_comGouMaiGetText = (UI_ComGouMaiGetText)UI_ComGouMaiGetText.Create(comp.GetChild("comGouMaiGetText"));
  56. }
  57. public void Dispose(bool disposeTarget = false)
  58. {
  59. m_loaIcon = null;
  60. m_comDiscount.Dispose();
  61. m_comDiscount = null;
  62. m_comGouMaiGetText.Dispose();
  63. m_comGouMaiGetText = null;
  64. if(disposeTarget && target != null)
  65. {
  66. target.RemoveFromParent();
  67. target.Dispose();
  68. }
  69. target = null;
  70. }
  71. }
  72. }