12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class EventTipsPanel
- {
- #region 自定义数据
- private MyImage _bg;
- public MyImage bg
- {
- get{
- if (_bg == null)
- {
- _bg = GetUIUnit<MyImage>("bg");
- }
- return _bg;
- }
- }
- private Button _Btn_Close;
- public Button Btn_Close
- {
- get{
- if (_Btn_Close == null)
- {
- _Btn_Close = GetUIUnit<Button>("Btn_Close");
- }
- return _Btn_Close;
- }
- }
- private RectTransform _Content;
- public RectTransform Content
- {
- get{
- if (_Content == null)
- {
- _Content = GetUIUnit<RectTransform>("Content");
- }
- return _Content;
- }
- }
- private Text _Text_EventName;
- public Text Text_EventName
- {
- get{
- if (_Text_EventName == null)
- {
- _Text_EventName = GetUIUnit<Text>("Text_EventName");
- }
- return _Text_EventName;
- }
- }
- private Text _Text_TiaoJian;
- public Text Text_TiaoJian
- {
- get{
- if (_Text_TiaoJian == null)
- {
- _Text_TiaoJian = GetUIUnit<Text>("Text_TiaoJian");
- }
- return _Text_TiaoJian;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|