FaBaoSkillWidgetData.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 FaBaoSkillWidget
  10. {
  11. #region 自定义数据
  12. private Text _Text_Level;
  13. public Text Text_Level
  14. {
  15. get{
  16. if (_Text_Level == null)
  17. {
  18. _Text_Level = GetUIUnit<Text>("Text_Level");
  19. }
  20. return _Text_Level;
  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 MyImage _Icon_Marsk;
  46. public MyImage Icon_Marsk
  47. {
  48. get{
  49. if (_Icon_Marsk == null)
  50. {
  51. _Icon_Marsk = GetUIUnit<MyImage>("Icon_Marsk");
  52. }
  53. return _Icon_Marsk;
  54. }
  55. }
  56. private CustomStateController _csc;
  57. public CustomStateController csc
  58. {
  59. get{
  60. if (_csc == null)
  61. {
  62. _csc = GetUIUnit<CustomStateController>("csc");
  63. }
  64. return _csc;
  65. }
  66. }
  67. private UIParticle _fx_ui_fabao_tiaomu;
  68. public UIParticle fx_ui_fabao_tiaomu
  69. {
  70. get{
  71. if (_fx_ui_fabao_tiaomu == null)
  72. {
  73. _fx_ui_fabao_tiaomu = GetUIUnit<UIParticle>("fx_ui_fabao_tiaomu");
  74. }
  75. return _fx_ui_fabao_tiaomu;
  76. }
  77. }
  78. #endregion 自定义数据结束
  79. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  80. {
  81. await base.SetUIGameObject(gObjectPoolInterface);
  82. Init();
  83. }
  84. }
  85. }