Initial commit: Unity 프로젝트 셋업 + 다이얼로그 시스템 이전

This commit is contained in:
2026-07-04 15:38:52 +09:00
commit 4d94878dbe
1310 changed files with 141631 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
[RequireComponent(typeof(DialogPlayer))]
public class DialogInteractable : MonoBehaviour
{
private DialogPlayer _player;
private void Awake()
{
_player = GetComponent<DialogPlayer>();
}
public void HandleActivated(ActivateEventArgs args)
{
if (_player == null || _player.IsPlaying) return;
_ = _player.Play();
}
}