1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- 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;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|