Exemple #1
0
        private void processScore(int score)
        {
            if (score == -1)
            {
                return;
            }

            Score.player2Score += score;
            scoreText.text      = (Mathf.Round(10000f * Score.player2Score / Score.player2MaxScore) / 100).ToString();
            if (score == 3)
            {
                feedbackRenderer.renderExcellent();
            }
            else if (score == 2)
            {
                feedbackRenderer.renderGood();
            }
            else if (score == 1)
            {
                feedbackRenderer.renderBad();
            }
            else if (score == 0)
            {
                feedbackRenderer.renderMiss();
                Score.player2Misses++;
            }
        }
Exemple #2
0
        private void checkForDespawnTiming()
        {
            if (drumNotes.Count == 0)
            {
                return;
            }

            DrumNote note = drumNotes.Peek();

            if (songManager.getCurrentSongTime() - note.hitTime > badWindow)
            {
                drumNotes.Dequeue();
                //Destroy(note.gameObject);
                note.gameObject.SetActive(false);
                feedbackRenderer.renderMiss();
                Score.player2Misses++;
            }
        }