마지막씬 보이스클립
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user