gf_widgetData.cs 596 B

1234567891011121314151617181920212223242526272829
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. namespace Fort23.Mono
  7. {
  8. public partial class gf_widget
  9. {
  10. #region 自定义数据
  11. private Image _gf_icon;
  12. public Image gf_icon
  13. {
  14. get{
  15. if (_gf_icon == null)
  16. {
  17. _gf_icon = GetUIUnit<Image>("gf_icon");
  18. }
  19. return _gf_icon;
  20. }
  21. }
  22. #endregion 自定义数据结束
  23. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  24. {
  25. await base.SetUIGameObject(gObjectPoolInterface);
  26. Init();
  27. }
  28. }
  29. }