Example #1
0
        private void Awake()
        {
            _userPrefsController = DependencyResolver.GetCachedUserPrefsControllerl();

            currentSceneIndex = gameObject.scene.buildIndex;
            SceneManager.LoadSceneAsync(_soundScene, LoadSceneMode.Additive);
        }
Example #2
0
        private void Awake()
        {
            _currentScore = 0;
            _scoreToText.SetScore(_currentScore);

            _userPrefsController = DependencyResolver.GetCachedUserPrefsControllerl();
            _userPrefs           = _userPrefsController.GetUserPrefs();

            this.WeakSubscribe <GameManagerMono, GameManagementEvent>(gm => gm.OnGameEvent);
        }