글로벌 오브젝트 추가

This commit is contained in:
2026-07-30 12:46:37 +09:00
parent 073567c652
commit 2413483853
23 changed files with 425 additions and 51 deletions

View File

@@ -55,6 +55,12 @@ public void MoveTo(LocationData location)
if (location == null || DialogPlayer.IsAnyActive) return;
Current = location;
// 장소 BGM = SoundManager의 기본 BGM 층. 대화용 BGM(Override)이 걷히면 이 곡으로 돌아온다.
// 비어 있으면 변경하지 않는다 — 노드 BGM과 같은 규칙(비면 변경 없음)이다.
if (location.Bgm != null && SoundManager.Instance != null)
SoundManager.Instance.SetDefaultBGM(location.Bgm);
if (_currentInstance != null) Destroy(_currentInstance);
_currentInstance = location.Prefab != null
? Instantiate(location.Prefab, _locationRoot)