사운드 추가 및 리소스 깨지는 문제 수정
This commit is contained in:
@@ -36,6 +36,12 @@ public class WallTransition : MonoBehaviour
|
||||
Debug.LogWarning("[Transition] 씬에 GameManager 싱글톤 오브젝트가 존재하지 않아 플레이어 정보 임시 세이브를 스킵합니다.");
|
||||
}
|
||||
|
||||
// 성벽 통과/씬 전환 효과음 재생
|
||||
if (SoundManager.Instance != null)
|
||||
{
|
||||
SoundManager.Instance.PlayTransition();
|
||||
}
|
||||
|
||||
// 2. 유니티 씬 매니저를 통해 목표 씬(battleStage)을 즉시 로드합니다.
|
||||
Debug.Log($"[Transition] {targetSceneName} 씬으로 화면을 전환합니다.");
|
||||
SceneManager.LoadScene(targetSceneName);
|
||||
|
||||
Reference in New Issue
Block a user