25 lines
646 B
C#
25 lines
646 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class DialogPlayer : MonoBehaviour
|
|
{
|
|
[SerializeField] private List<DialogGroup> _dialogGroups;
|
|
private Dictionary<string, DialogGroup> _dialogGroupMap;
|
|
|
|
private void Awake()
|
|
{
|
|
_dialogGroupMap = new Dictionary<string, DialogGroup>();
|
|
foreach (var g in _dialogGroups)
|
|
{
|
|
_dialogGroupMap[g.DialogGroupName] = g;
|
|
}
|
|
}
|
|
|
|
public void VoicePlay(DialogNode node)
|
|
{
|
|
|
|
//CharacterVoiceObject speakerVoiceObject = FindSpeakerVoiceObject(node.Speaker);
|
|
//speakerVoiceObject.Play(node.Voice.Clip);
|
|
}
|
|
}
|