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

This commit is contained in:
2025-10-23 15:46:17 +08:00
parent 4ef8430c6b
commit f6f523e609
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;
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 11e2853ce9054f6b90407f3c56563502
timeCreated: 1761189140