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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user