示例#1
0
        protected virtual void CreateManagers()
        {
            // TODO: this should be initialized by a Core something
            DOTween.Init();

            // should always be first
            DebugMenuManager.Create(ManagersContainer);

            TimeManager.Create(ManagersContainer);
            AudioManager.CreateFromPrefab(_audioManagerPrefab, ManagersContainer);
            ObjectPoolManager.Create(ManagersContainer);
            CameraManager.CreateFromPrefab(_cameraManagerPrefab, ManagersContainer);
            InputManager.CreateFromPrefab(_inputManagerPrefab, ManagersContainer);
            GameSceneManager.CreateFromPrefab(_gameSceneManagerPrefab, ManagersContainer);
            GameStateManager.CreateFromPrefab(_gameStateManagerPrefab, ManagersContainer);
        }