예제 #1
0
    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();
    }
예제 #2
0
    private void SetResult()
    {
        int best = _dataStorageManager.GetBestScore();

        if (best >= _playerScore)
        {
            return;
        }
        _dataStorageManager.SetBestScore(_playerScore);
        if (_gameUIManager)
        {
            _gameUIManager.EnebleNewHightScoreLbl = true;
        }
    }