UI_ComHeadWithLv.cs 2.2 KB

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