public void AddScore(int score) { currentScore += score; if (currentScore > 0 && currentScore % 10 == 0 && scrollManager.speedMultiplier <= 0.95f) { scrollManager.IncreaseSpeed(); } }