축제 잔디 사망루트

This commit is contained in:
2026-07-23 17:16:30 +09:00
parent f83646b613
commit e34c3a1f45
15 changed files with 444 additions and 10 deletions

View File

@@ -204,6 +204,14 @@ private void MovePlayerToLoadingArea()
if (cc != null) cc.enabled = true;
}
// 화면이 어두워진 뒤, HideDuringLoading 마커가 붙은 오브젝트를 전부 끈다 (로딩 중 노출/깜빡임 방지).
// 글로벌 매니저라 씬 오브젝트를 직접 참조할 수 없으므로(씬 전환 시 참조가 끊김) 런타임에 씬에서 찾는다.
private void DisableDarkObjects()
{
foreach (var marker in FindObjectsByType<HideDuringLoading>())
marker.gameObject.SetActive(false);
}
public void RequestSceneChange(string sceneName)
{
_ = SceneChange(sceneName);
@@ -233,6 +241,9 @@ private async Awaitable SceneChange(string sceneName)
// (로딩 룸은 카메라를 따라다니므로 함께 이동한다)
MovePlayerToLoadingArea();
// 어두워진 상태에서 지정 오브젝트들 끄기 (로딩 중 보이면 안 되는 것들)
DisableDarkObjects();
// 로딩 룸에 도착했으니 시야를 다시 연다 (스카이박스 페이드 인과 동시 진행)
if (pc != null)
_ = pc.FadeSight(true, 0.8f);