Example #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);
        }
Example #2
0
        protected virtual void CreateManagers()
        {
            // third party stuff
            DOTween.Init();

            // these managers must come first, in this order
            DebugMenuManager.Create(ManagersContainer);
            PartyParrotManager.Create(ManagersContainer);

            TimeManager.Create(ManagersContainer);
            AudioManager.CreateFromPrefab(_audioManagerPrefab, ManagersContainer);
            ObjectPoolManager.Create(ManagersContainer);
            ViewerManager.CreateFromPrefab(_viewerManagerPrefab, ManagersContainer);
            InputManager.CreateFromPrefab(_inputManagerPrefab, ManagersContainer);
            Instantiate(_networkManagerPrefab, ManagersContainer.transform);
            SceneManager.CreateFromPrefab(_sceneManagerPrefab, ManagersContainer);
        }