12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class ShopPanel
- {
- #region 自定义数据
- private RectTransform _Content;
- public RectTransform Content
- {
- get{
- if (_Content == null)
- {
- _Content = GetUIUnit<RectTransform>("Content");
- }
- return _Content;
- }
- }
- private Button _Btn_Close;
- public Button Btn_Close
- {
- get{
- if (_Btn_Close == null)
- {
- _Btn_Close = GetUIUnit<Button>("Btn_Close");
- }
- return _Btn_Close;
- }
- }
- private GameObject _ShopGroupWidgetType1;
- public GameObject ShopGroupWidgetType1
- {
- get{
- if (_ShopGroupWidgetType1 == null)
- {
- _ShopGroupWidgetType1 = GetUIUnit<GameObject>("ShopGroupWidgetType1");
- }
- return _ShopGroupWidgetType1;
- }
- }
- private GameObject _ShopGroupWidgetType2;
- public GameObject ShopGroupWidgetType2
- {
- get{
- if (_ShopGroupWidgetType2 == null)
- {
- _ShopGroupWidgetType2 = GetUIUnit<GameObject>("ShopGroupWidgetType2");
- }
- return _ShopGroupWidgetType2;
- }
- }
- private RectTransform _Group_ResourceBar;
- public RectTransform Group_ResourceBar
- {
- get{
- if (_Group_ResourceBar == null)
- {
- _Group_ResourceBar = GetUIUnit<RectTransform>("Group_ResourceBar");
- }
- return _Group_ResourceBar;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|