feat(Dialogue): 实现基本的对话系统

This commit is contained in:
2025-10-23 15:46:17 +08:00
parent 869d5794f3
commit efcbc8eea5
29 changed files with 1398 additions and 86 deletions

View File

@@ -0,0 +1,22 @@
using System;
using UnityEngine;
using Script.Gameplay.Interface;
using UnityEngine.Events;
namespace Script.Gameplay.Dialogue
{
public class BaseDialogueItem : MonoBehaviour, IDialogue
{
[TextArea] [SerializeField] private string dialogueContent; // 对话内容
public UnityEvent<bool> OnBeginDialogue { get; set; }
public UnityEvent<bool> OnEndDialogue { get; set; }
public bool IsRoad { get; set; }
public int GetDialogueCount { get; set; }
public string DialogueContent
{
get => dialogueContent;
set => dialogueContent = value;
}
}
}