private void Update() { if (isPlaying) { float pitch = Mathf.Clamp(0.008f * (Score * 0.001f) + 0.85f, 0.85f, 1.3f); music.ChangePitch(pitch); Score += (Time.deltaTime * timeScoreIncrease * (ToAddMultiplier() + 0.5f)) + (Score * 0.001f); } }