UI_UnbindPhoneUI.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Login
  4. {
  5. public partial class UI_UnbindPhoneUI
  6. {
  7. public GComponent target;
  8. public GComponent m_bg;
  9. public GButton m_btnback;
  10. public GButton m_btnSendCode;
  11. public GTextInput m_txtCode;
  12. public GTextField m_txtPhone;
  13. public GButton m_btnSubmit;
  14. public const string URL = "ui://myoktu7pobd26b";
  15. public const string PACKAGE_NAME = "Login";
  16. public const string RES_NAME = "UnbindPhoneUI";
  17. private static UI_UnbindPhoneUI _proxy;
  18. public static UI_UnbindPhoneUI Create(GObject gObject = null)
  19. {
  20. var ui = new UI_UnbindPhoneUI();
  21. if(gObject == null)
  22. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  23. else
  24. ui.target = (GComponent)gObject;
  25. ui.Init(ui.target);
  26. return ui;
  27. }
  28. public static UI_UnbindPhoneUI Proxy(GObject gObject = null)
  29. {
  30. if(_proxy == null)
  31. {
  32. _proxy = new UI_UnbindPhoneUI();
  33. }
  34. var ui = _proxy;
  35. if(gObject == null)
  36. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  37. else
  38. ui.target = (GComponent)gObject;
  39. ui.Init(ui.target);
  40. return ui;
  41. }
  42. public static void ProxyEnd()
  43. {
  44. if (_proxy != null)
  45. {
  46. _proxy.Dispose();
  47. }
  48. }
  49. public static void ClearProxy()
  50. {
  51. ProxyEnd();
  52. _proxy = null;
  53. }
  54. private void Init(GComponent comp)
  55. {
  56. m_bg = (GComponent)comp.GetChild("bg");
  57. m_btnback = (GButton)comp.GetChild("btnback");
  58. m_btnSendCode = (GButton)comp.GetChild("btnSendCode");
  59. m_txtCode = (GTextInput)comp.GetChild("txtCode");
  60. m_txtPhone = (GTextField)comp.GetChild("txtPhone");
  61. m_btnSubmit = (GButton)comp.GetChild("btnSubmit");
  62. }
  63. public void Dispose(bool disposeTarget = false)
  64. {
  65. m_bg = null;
  66. m_btnback = null;
  67. m_btnSendCode = null;
  68. m_txtCode = null;
  69. m_txtPhone = null;
  70. m_btnSubmit = null;
  71. if(disposeTarget && target != null)
  72. {
  73. target.RemoveFromParent();
  74. target.Dispose();
  75. }
  76. target = null;
  77. }
  78. }
  79. }