2026-04-17 장보기 목록 버튼 할당 진행중

This commit is contained in:
2026-04-17 18:02:36 +09:00
parent 25e7b5bf4d
commit 43899e355f
38 changed files with 422 additions and 11 deletions

View File

@@ -0,0 +1,29 @@
using System;
using UnityEngine;
using UnityEngine.InputSystem;
public class InputManager : MonoBehaviour
{
public static InputManager Instance;
//인풋 매니저는 눌린 키에 대한 이벤트만 실행함. 어떤 로직이 등록되어있는지는 모른다.
public event Action XRLeftControllerPrimaryButton_Event;
private void Awake()
{
if (Instance == null)
{
Instance = this; //만들어진 자신을 인스턴스로 설정
}
else
{
Destroy(gameObject); //이미 인스턴스가 있으면 자신을 파괴
}
}
public void XRLeftControllerPrimaryButton(InputAction.CallbackContext ctx)
{
if(ctx.started)
XRLeftControllerPrimaryButton_Event?.Invoke();
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 7932f9ffafd2066489578f2cc9e366d9

View File

@@ -104,6 +104,8 @@ private async Awaitable SceneChange(string sceneName)
{
try
{
SetSceneLoadingProgressValue(0f);
await SetSceneLoadingActive(true,1f);
AsyncOperation op = SceneManager.LoadSceneAsync(sceneName);