Пример #1
0
    void UpdateUIStats(BaseGameplayRulestate currentRulestate)
    {
        BaseGameplayRulestate.NoteStats stats = currentRulestate.stats;
        uint noteStreak = stats.noteStreak;
        uint totalNotes = stats.totalNotes;
        uint notesHit   = stats.notesHit;

        noteStreakText.text = noteStreak.ToString();
        if (totalNotes > 0)
        {
            percentHitText.text = ((float)notesHit / (float)totalNotes * 100).Round(2).ToString() + "%";
        }
        else
        {
            percentHitText.text = "0.00%";
        }

        totalHitText.text = notesHit.ToString() + " / " + totalNotes.ToString();
    }
 void UpdateUIStats(BaseGameplayRulestate currentRulestate)
 {
     BaseGameplayRulestate.NoteStats stats = currentRulestate.stats;
 }