기본 사운드 기능 및 사운드 기능을 위한 사운드 매니저 추가

This commit is contained in:
2026-01-29 01:02:59 +09:00
parent 7f17e25137
commit a404e684ed
802 changed files with 1009 additions and 182 deletions

View File

@@ -8,10 +8,13 @@ public class Managers : MonoBehaviour
InputManager _input = new InputManager();
ResourceManager _resource = new ResourceManager();
SceneManagerEx _scene = new SceneManagerEx();
SoundManager _sound = new SoundManager();
UIManager _ui = new UIManager();
public static InputManager Input { get { return Instance._input; } }
public static ResourceManager Resource { get { return Instance._resource; } }
public static SceneManagerEx Scene { get { return Instance._scene; } }
public static SoundManager Sound { get { return Instance._sound; } }
public static UIManager UI { get { return Instance._ui; } }
// Start is called once before the first execution of Update after the MonoBehaviour is created
@@ -39,7 +42,17 @@ public class Managers : MonoBehaviour
}
DontDestroyOnLoad(go);
s_instance = go.GetComponent<Managers>();
s_instance = go.GetComponent<Managers>();
s_instance._sound.Init();
}
}
public static void Clear()
{
Sound.Clear();
Input.Clear();
Scene.Clear();
UI.Clear();
}
}