123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class DialoguePanel
- {
- #region 自定义数据
- private GameObject _nextIcon;
- public GameObject nextIcon
- {
- get{
- if (_nextIcon == null)
- {
- _nextIcon = GetUIUnit<GameObject>("nextIcon");
- }
- return _nextIcon;
- }
- }
- private Text _message;
- public Text message
- {
- get{
- if (_message == null)
- {
- _message = GetUIUnit<Text>("message");
- }
- return _message;
- }
- }
- private Button _nextButton;
- public Button nextButton
- {
- get{
- if (_nextButton == null)
- {
- _nextButton = GetUIUnit<Button>("nextButton");
- }
- return _nextButton;
- }
- }
- private MyImage _icon;
- public MyImage icon
- {
- get{
- if (_icon == null)
- {
- _icon = GetUIUnit<MyImage>("icon");
- }
- return _icon;
- }
- }
- private RectTransform _OptionRoot;
- public RectTransform OptionRoot
- {
- get{
- if (_OptionRoot == null)
- {
- _OptionRoot = GetUIUnit<RectTransform>("OptionRoot");
- }
- return _OptionRoot;
- }
- }
- private RectTransform _Dialgue;
- public RectTransform Dialgue
- {
- get{
- if (_Dialgue == null)
- {
- _Dialgue = GetUIUnit<RectTransform>("Dialgue");
- }
- return _Dialgue;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|