Пример #1
0
        private void Awake()
        {
            _currentScore = 0;
            _scoreToText.SetScore(_currentScore);

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

            this.WeakSubscribe <GameManagerMono, GameManagementEvent>(gm => gm.OnGameEvent);
        }
Пример #2
0
 public void ShowHighScore()
 {
     _scoreToText.SetScore(_userPrefsController.GetUserPrefs().UserScore);
     _highScoreContainer.gameObject.SetActive(true);
 }