기본 사운드 기능 및 사운드 기능을 위한 사운드 매니저 추가
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user