GongFaUpgradeInfoWidgetData.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. using Coffee.UIExtensions;
  7. namespace Fort23.Mono
  8. {
  9. public partial class GongFaUpgradeInfoWidget
  10. {
  11. #region 自定义数据
  12. private List<MyImage> _StarRoot;
  13. public List<MyImage> StarRoot
  14. {
  15. get{
  16. if (_StarRoot == null)
  17. {
  18. _StarRoot = GetUIUnit<List<MyImage>>("StarRoot");
  19. }
  20. return _StarRoot;
  21. }
  22. }
  23. private Text _Text_Desc;
  24. public Text Text_Desc
  25. {
  26. get{
  27. if (_Text_Desc == null)
  28. {
  29. _Text_Desc = GetUIUnit<Text>("Text_Desc");
  30. }
  31. return _Text_Desc;
  32. }
  33. }
  34. private MyImage _Icon_Select;
  35. public MyImage Icon_Select
  36. {
  37. get{
  38. if (_Icon_Select == null)
  39. {
  40. _Icon_Select = GetUIUnit<MyImage>("Icon_Select");
  41. }
  42. return _Icon_Select;
  43. }
  44. }
  45. private GameObject _Icon_Marsk;
  46. public GameObject Icon_Marsk
  47. {
  48. get{
  49. if (_Icon_Marsk == null)
  50. {
  51. _Icon_Marsk = GetUIUnit<GameObject>("Icon_Marsk");
  52. }
  53. return _Icon_Marsk;
  54. }
  55. }
  56. private UIParticle _fx_ui_gongfa_tiaomu;
  57. public UIParticle fx_ui_gongfa_tiaomu
  58. {
  59. get{
  60. if (_fx_ui_gongfa_tiaomu == null)
  61. {
  62. _fx_ui_gongfa_tiaomu = GetUIUnit<UIParticle>("fx_ui_gongfa_tiaomu");
  63. }
  64. return _fx_ui_gongfa_tiaomu;
  65. }
  66. }
  67. #endregion 自定义数据结束
  68. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  69. {
  70. await base.SetUIGameObject(gObjectPoolInterface);
  71. Init();
  72. }
  73. }
  74. }