캐릭터 피격 사운드 제거
This commit is contained in:
@@ -17,6 +17,8 @@ namespace TON
|
||||
{
|
||||
instance = this;
|
||||
DontDestroyOnLoad(instance);
|
||||
// 씬 로드 이벤트에 리스너 등록
|
||||
SceneManager.sceneLoaded += OnSceneLoaded;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -24,18 +26,6 @@ namespace TON
|
||||
}
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
// 씬 로드 이벤트에 리스너 등록
|
||||
SceneManager.sceneLoaded += OnSceneLoaded;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
// 씬 로드 이벤트에서 리스너 제거
|
||||
SceneManager.sceneLoaded -= OnSceneLoaded;
|
||||
}
|
||||
|
||||
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
||||
{
|
||||
// 씬이 바뀔 때마다 배경 음악 종료
|
||||
|
||||
Reference in New Issue
Block a user