2026-04-24 커뮤니케이션 시스템
This commit is contained in:
24
Assets/02_Scripts/Communication/Dialog/DialogPlayer.cs
Normal file
24
Assets/02_Scripts/Communication/Dialog/DialogPlayer.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user