2026-07-10 대화 BGM,이펙트

This commit is contained in:
2026-07-10 17:27:11 +09:00
parent bda7752fb3
commit 932aad8c56
26 changed files with 1984 additions and 11 deletions

View File

@@ -40,7 +40,7 @@ private void Awake()
}
else
{
Destroy(gameObject); //이미 인스턴스가 있으면 자신을 파괴
Destroy(gameObject); //이미 인스턴스가 있으면 자신을 파괴 (씬마다 놓아도 첫 번째만 남음)
}
}
@@ -72,6 +72,7 @@ private void Start()
//기본 BGM 교체 (씬/분위기 전환용). 전용 BGM 재생 중이면 곡은 유지되고 복귀 시 반영됨.
public void SetDefaultBGM(AudioClip clip)
{
if (_defaultBgm == clip) return; //같은 곡이면 페이드 재시작 없이 유지
_defaultBgm = clip;
if (_overrideBgm == null)
StartBgmChange(clip);