UI_level.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.ActivityHuaRongDao
  4. {
  5. public partial class UI_level
  6. {
  7. public GComponent target;
  8. public Controller m_light;
  9. public GTextField m_levelNum;
  10. public GGraph m_reward;
  11. public const string URL = "ui://wf8geywtltoye";
  12. public const string PACKAGE_NAME = "ActivityHuaRongDao";
  13. public const string RES_NAME = "level";
  14. private static UI_level _proxy;
  15. public static UI_level Create(GObject gObject = null)
  16. {
  17. var ui = new UI_level();
  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_level Proxy(GObject gObject = null)
  26. {
  27. if(_proxy == null)
  28. {
  29. _proxy = new UI_level();
  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_light = comp.GetController("light");
  54. m_levelNum = (GTextField)comp.GetChild("levelNum");
  55. m_reward = (GGraph)comp.GetChild("reward");
  56. }
  57. public void Dispose(bool disposeTarget = false)
  58. {
  59. m_light = null;
  60. m_levelNum = null;
  61. m_reward = null;
  62. if(disposeTarget && target != null)
  63. {
  64. target.RemoveFromParent();
  65. target.Dispose();
  66. }
  67. target = null;
  68. }
  69. }
  70. }