private void SetScoreValue() { if (!_score) { throw new NullReferenceException("Score lbl is null."); } int score = _dataStorageManager.GetBestScore(); _score.text = score == 0 ? _dataStorageManager.GameConfig.DefaultScore : score.ToString(); }
private void SetResult() { int best = _dataStorageManager.GetBestScore(); if (best >= _playerScore) { return; } _dataStorageManager.SetBestScore(_playerScore); if (_gameUIManager) { _gameUIManager.EnebleNewHightScoreLbl = true; } }