라이팅 수정
This commit is contained in:
@@ -46,6 +46,9 @@ public struct NodeEvent
|
||||
[Tooltip("말을 건 뒤 대화창(선택 메뉴·첫 대사)이 뜨기까지의 딜레이(초)")]
|
||||
[Min(0)] [SerializeField] private float _dialogStartDelay = 0.2f;
|
||||
|
||||
[Tooltip("보이스가 있는 노드는 클립이 끝난 뒤 이만큼(초) 더 기다렸다 다음으로 넘어간다 (바로 넘어가면 어색해서)")]
|
||||
[Min(0)] [SerializeField] private float _voiceTrailingDelay = 0.5f;
|
||||
|
||||
// HUD 배치는 화자(NPC)의 DialogHudPlacement 컴포넌트가 담당한다 (없으면 DialogHud 기본값).
|
||||
|
||||
[Header("Dialog Events")]
|
||||
@@ -731,7 +734,7 @@ private async Awaitable<bool> PlayNode(DialogNode node)
|
||||
else
|
||||
{
|
||||
float wait = node.Voice != null
|
||||
? node.Voice.length
|
||||
? node.Voice.length + _voiceTrailingDelay // 클립이 끝난 뒤 잠깐 여운
|
||||
: node.LineDuration;
|
||||
|
||||
if (wait > 0f)
|
||||
@@ -853,7 +856,7 @@ private async Awaitable<bool> WaitAdvanceOrDivert(DialogNode node)
|
||||
else
|
||||
{
|
||||
float wait = node.Voice != null
|
||||
? node.Voice.length
|
||||
? node.Voice.length + _voiceTrailingDelay // 클립이 끝난 뒤 잠깐 여운
|
||||
: node.LineDuration;
|
||||
if (wait > 0f) { waitForInput = false; timeoutSeconds = wait; }
|
||||
else { waitForInput = true; timeoutSeconds = -1f; }
|
||||
|
||||
Reference in New Issue
Block a user