2026-06-09 다이얼로그 프로토타입

This commit is contained in:
skrwns304@gmail.com
2026-06-09 16:33:55 +09:00
parent 404921f815
commit 3a18351d17
19 changed files with 230 additions and 14 deletions

View File

@@ -176,16 +176,14 @@ private async Awaitable PlayNode(DialogNode node)
private async Awaitable<int> WaitForChoice(DialogNode node)
{
//선택을 기다리는 함수 수정해서 사용할것
/*
if (ChoiceHud.Instance == null)
{
Debug.LogWarning("[DialogPlayer] ChoiceHud 없음 — 0번 자동 선택");
return 0;
}
return await ChoiceHud.Instance.Show(node.Speaker, node.ChoiceQuestion ,node.Choices);
*/
return 0;
}
private async Awaitable WaitForAdvanceInput()
@@ -193,4 +191,19 @@ private async Awaitable WaitForAdvanceInput()
// TODO: VR 컨트롤러 버튼 입력 대기. 일단은 1초 대기
await Awaitable.WaitForSecondsAsync(1f);
}
//테스트용
private void Update()
{
if (Mouse.current == null) return;
if (!Mouse.current.leftButton.wasPressedThisFrame) return;
if (Camera.main == null) return;
var ray = Camera.main.ScreenPointToRay(Mouse.current.position.ReadValue());
if (Physics.Raycast(ray, out var hit) && hit.transform.IsChildOf(transform))
{
Debug.Log("캐릭터 클릭");
Play();
}
}
}