풀링 매니저 생성 및 풀링 기능 구현
- 테스트 프리팹 삭제
This commit is contained in:
@@ -6,12 +6,14 @@ public class Managers : MonoBehaviour
|
||||
static Managers Instance { get { Init(); return s_instance; } } // 유일한 매니저를 가져온다.
|
||||
|
||||
InputManager _input = new InputManager();
|
||||
PoolManager _pool = new PoolManager();
|
||||
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 PoolManager Pool { get { return Instance._pool; } }
|
||||
public static ResourceManager Resource { get { return Instance._resource; } }
|
||||
public static SceneManagerEx Scene { get { return Instance._scene; } }
|
||||
public static SoundManager Sound { get { return Instance._sound; } }
|
||||
@@ -44,6 +46,7 @@ public class Managers : MonoBehaviour
|
||||
DontDestroyOnLoad(go);
|
||||
s_instance = go.GetComponent<Managers>();
|
||||
|
||||
s_instance._pool.Init();
|
||||
s_instance._sound.Init();
|
||||
}
|
||||
}
|
||||
@@ -54,5 +57,7 @@ public class Managers : MonoBehaviour
|
||||
Input.Clear();
|
||||
Scene.Clear();
|
||||
UI.Clear();
|
||||
|
||||
Pool.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user