private void FixedUpdate()
    {
        SongManager.Instance.UpdateSongValues();
        ScoreManager.Instance.UpdateNoteToHit();

        if (playing && playerCharContr.isAlive)
        {
            if (noteToPlayInSeconds == 0)
            {
                noteToPlayInSeconds = notesInSeconds[notesInSecondsIndex].notePosInSeconds;
                ScoreManager.Instance.nextNoteToHit(notesInSecondsIndex);
            }

            if (noteToPlayInSeconds <= SongManager.Instance.SongPositionInSeconds)
            {
                notesInSeconds[notesInSecondsIndex].noteFunction.Invoke();
                IncrementNoteToPlayInSeconds();
            }
        }
        else if (playerCharContr.isAlive)
        {
            SongManager.Instance.Stop();
            ScoreManager.Instance.FinalScore();
            scorePanel.DisplayScore();
        }
        else
        {
            SongManager.Instance.Stop();
            scorePanel.DisplayDeathScore();
        }
    }