2026-04-27 대화 선택지 시스템

This commit is contained in:
2026-04-27 13:10:26 +09:00
parent 6c6cf63668
commit 5ed3f9f750
37 changed files with 918 additions and 181 deletions

View File

@@ -1,6 +1,7 @@
using System.Collections.Generic;
using UnityEngine.InputSystem;
using UnityEngine;
using VRShopping.UI;
[RequireComponent(typeof(CharacterVoiceObject))]
public class DialogPlayer : MonoBehaviour
@@ -174,10 +175,12 @@ private async Awaitable PlayNode(DialogNode node)
private async Awaitable<int> WaitForChoice(DialogNode node)
{
// TODO: 선택지 UI 띄우기. 일단은 첫 번째 선택지 자동 선택 (테스트용)
Debug.Log("[DialogPlayer] 선택지 대기 — 일단 0번 자동 선택");
await Awaitable.WaitForSecondsAsync(0.5f);
return 0;
if (ChoiceHud.Instance == null)
{
Debug.LogWarning("[DialogPlayer] ChoiceHud 없음 — 0번 자동 선택");
return 0;
}
return await ChoiceHud.Instance.Show(node.Speaker, node.ChoiceQuestion ,node.Choices);
}
private async Awaitable WaitForAdvanceInput()