1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- 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;
- }
- }
- private RectTransform _ShopBtnContent;
- public RectTransform ShopBtnContent
- {
- get{
- if (_ShopBtnContent == null)
- {
- _ShopBtnContent = GetUIUnit<RectTransform>("ShopBtnContent");
- }
- return _ShopBtnContent;
- }
- }
- private Text _Text_Title;
- public Text Text_Title
- {
- get{
- if (_Text_Title == null)
- {
- _Text_Title = GetUIUnit<Text>("Text_Title");
- }
- return _Text_Title;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|