마지막씬 보이스클립

This commit is contained in:
2026-07-27 17:16:32 +09:00
parent 926a33a88c
commit dd5afa08d2
34 changed files with 401 additions and 100 deletions

View File

@@ -649,8 +649,8 @@ private async Awaitable<bool> PlayNode(DialogNode node)
if (node.Voice != null && node.Speaker != null)
{
var voiceObj = CharacterVoiceObject.Find(node.Speaker);
if (voiceObj != null && node.Voice.Clip != null)
voiceObj.Play(node.Voice.Clip);
if (voiceObj != null)
voiceObj.Play(node.Voice);
}
// 플레이어 향해 회전
@@ -730,8 +730,8 @@ private async Awaitable<bool> PlayNode(DialogNode node)
}
else
{
float wait = (node.Voice != null && node.Voice.Clip != null)
? node.Voice.Clip.length
float wait = node.Voice != null
? node.Voice.length
: node.LineDuration;
if (wait > 0f)
@@ -852,8 +852,8 @@ private async Awaitable<bool> WaitAdvanceOrDivert(DialogNode node)
}
else
{
float wait = (node.Voice != null && node.Voice.Clip != null)
? node.Voice.Clip.length
float wait = node.Voice != null
? node.Voice.length
: node.LineDuration;
if (wait > 0f) { waitForInput = false; timeoutSeconds = wait; }
else { waitForInput = true; timeoutSeconds = -1f; }