feat(Dialogue): 实现基本的对话系统
This commit is contained in:
22
Assets/Script/Gameplay/Dialogue/BaseDialogueItem.cs
Normal file
22
Assets/Script/Gameplay/Dialogue/BaseDialogueItem.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Script/Gameplay/Dialogue/BaseDialogueItem.cs.meta
Normal file
3
Assets/Script/Gameplay/Dialogue/BaseDialogueItem.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 11e2853ce9054f6b90407f3c56563502
|
||||
timeCreated: 1761189140
|
||||
Reference in New Issue
Block a user