설정수정

This commit is contained in:
2026-06-26 13:18:33 +09:00
parent 29f21a130e
commit c0574abb80
9 changed files with 97 additions and 7 deletions

View File

@@ -149,6 +149,18 @@ private async Awaitable SightFadeAsync(float targetAlpha, CancellationToken toke
catch (OperationCanceledException) { }
}
// GameManager를 통해 게임을 종료한다. (UI 버튼·타임라인 시그널 등에서 호출)
public void QuitGame()
{
if (GameManager.Instance == null)
{
Debug.LogWarning("[PlayerController] GameManager.Instance가 없습니다. 게임을 종료할 수 없습니다.");
return;
}
GameManager.Instance.QuitGame();
}
private void Update()
{
// 바닥 체크 및 Y축 속도 초기화