설정수정
This commit is contained in:
@@ -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축 속도 초기화
|
||||
|
||||
Reference in New Issue
Block a user