30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
|
//=================================================== 代码自动创建,禁止手动修改 ===================================================
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
using TMPro;
|
||
|
|
||
|
namespace Ether
|
||
|
{
|
||
|
public class DialogueFrameBase : FrameBase
|
||
|
{
|
||
|
public override string PrefabPath { get; } = "Prefabs/Frames/Dialogue/DialogueFrame";
|
||
|
protected ButtonEx _BtnExBgNext;
|
||
|
protected TextMeshProUGUI _TextActorName;
|
||
|
protected TextMeshProUGUI _TextContent;
|
||
|
protected Transform _TransChoiceBtnList;
|
||
|
protected GameObject _GoTempChoiceBtn;
|
||
|
|
||
|
protected override void OnInit()
|
||
|
{
|
||
|
_BtnExBgNext = GetComponent<ButtonEx>("<BtnEx>BgNext");
|
||
|
_TextActorName = GetComponent<TextMeshProUGUI>("DialogueRoot/<Text>ActorName");
|
||
|
_TextContent = GetComponent<TextMeshProUGUI>("DialogueRoot/<Text>Content");
|
||
|
_TransChoiceBtnList = GetComponent<Transform>("<Trans>ChoiceBtnList");
|
||
|
_GoTempChoiceBtn = GetChild("<Trans>ChoiceBtnList/<Go>TempChoiceBtn").gameObject;
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|