コード例 #1
0
    public void ScoreUp(InGameNote note)
    {
        if (note.CurrentRank == ValidationRank.Error)
        {
            return;
        }

        _currentResumeScore.First(i => i.Rank == note.CurrentRank).CurrentCount++;

        _currentScore += _scoreConf.First(i => i.Rank == note.CurrentRank).Score *_combo.CurrentCoef.Coef;
        _text.text     = _currentScore.ToString();
        OnScoreUp?.Invoke(note);
        OnNoteAccepted?.Invoke();
    }
コード例 #2
0
 public void NoteMissed(InGameNote ign)
 {
     _missedNotes++;
     OnScoreUp?.Invoke(ign);
     OnNoteMissed?.Invoke();
 }