Beispiel #1
0
        private void PreCreateManagers()
        {
            // third party stuff
            DOTween.Init();

            // core managers
            DebugMenuManager.CreateFromPrefab(_debugMenuManagerPrefab, ManagersContainer);
            PartyParrotManager.CreateFromPrefab(_engineManagerPrefab, ManagersContainer);
            SaveGameManager.CreateFromPrefab(_saveGameManagerPrefab, ManagersContainer);
            LocalizationManager.CreateFromPrefab(_localizationManagerPrefab, ManagersContainer);

            // TODO: for now this dude does stuff in Start() rather than Awake()
            // someday when Awake() can be overriden, we can get rid of PreCreateManagers()
            // and just do everything in CreateManagers()
            Instantiate(_networkManagerPrefab, ManagersContainer.transform);

            // do this now so that managers coming up can have access to it
            PartyParrotManager.Instance.RegisterLoadingManager(this);
        }