22 lines
665 B
C#
22 lines
665 B
C#
using UnityEngine;
|
|
|
|
namespace BaseGames.Dialogue
|
|
{
|
|
/// <summary>
|
|
/// 对话数据 ScriptableObject。
|
|
/// </summary>
|
|
[CreateAssetMenu(menuName = "BaseGames/Dialogue/DialogueData")]
|
|
public class DialogueDataSO : ScriptableObject
|
|
{
|
|
[Tooltip("对话资产的唯一标识符,对应存档中 NPC 对话进度记录。")]
|
|
public string dialogueId;
|
|
|
|
[Tooltip("对话参与者名称(用于 HUD 说话人名牌)。")]
|
|
public string speakerName;
|
|
|
|
[TextArea(3, 8)]
|
|
[Tooltip("对话内容占位文本,正式内容在 DialogueLineSO[] 中定义。")]
|
|
public string placeholderText;
|
|
}
|
|
}
|