ImmortalBondPanelData.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 ImmortalBondPanel
  9. {
  10. #region 自定义数据
  11. private Text _Text_Count;
  12. public Text Text_Count
  13. {
  14. get{
  15. if (_Text_Count == null)
  16. {
  17. _Text_Count = GetUIUnit<Text>("Text_Count");
  18. }
  19. return _Text_Count;
  20. }
  21. }
  22. private RectTransform _JiachengContent;
  23. public RectTransform JiachengContent
  24. {
  25. get{
  26. if (_JiachengContent == null)
  27. {
  28. _JiachengContent = GetUIUnit<RectTransform>("JiachengContent");
  29. }
  30. return _JiachengContent;
  31. }
  32. }
  33. private RectTransform _Content1;
  34. public RectTransform Content1
  35. {
  36. get{
  37. if (_Content1 == null)
  38. {
  39. _Content1 = GetUIUnit<RectTransform>("Content1");
  40. }
  41. return _Content1;
  42. }
  43. }
  44. private RectTransform _Content2;
  45. public RectTransform Content2
  46. {
  47. get{
  48. if (_Content2 == null)
  49. {
  50. _Content2 = GetUIUnit<RectTransform>("Content2");
  51. }
  52. return _Content2;
  53. }
  54. }
  55. private Button _Btn_Close;
  56. public Button Btn_Close
  57. {
  58. get{
  59. if (_Btn_Close == null)
  60. {
  61. _Btn_Close = GetUIUnit<Button>("Btn_Close");
  62. }
  63. return _Btn_Close;
  64. }
  65. }
  66. private Button _Btn_Remove;
  67. public Button Btn_Remove
  68. {
  69. get{
  70. if (_Btn_Remove == null)
  71. {
  72. _Btn_Remove = GetUIUnit<Button>("Btn_Remove");
  73. }
  74. return _Btn_Remove;
  75. }
  76. }
  77. private Button _Btn_Add;
  78. public Button Btn_Add
  79. {
  80. get{
  81. if (_Btn_Add == null)
  82. {
  83. _Btn_Add = GetUIUnit<Button>("Btn_Add");
  84. }
  85. return _Btn_Add;
  86. }
  87. }
  88. #endregion 自定义数据结束
  89. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  90. {
  91. await base.SetUIGameObject(gObjectPoolInterface);
  92. Init();
  93. }
  94. }
  95. }