private void handleSound(float speed) { if (verticalInput == 0.0f) { sh.play_idle(); } if (verticalInput > 0 && speed > 0 && speed < 20) { sh.play_accLow(); } else if (verticalInput > 0 && speed > 20 && speed < 38) { sh.play_accMed(); } else if (verticalInput > 0 && speed > 38 && speed < 100) { sh.play_accHigh(); } else if (verticalInput < 0 && speed > 0 && speed < 20) { sh.play_decLow(); } else if (verticalInput < 0 && speed > 20 && speed < 38) { sh.play_decMed(); } else if (verticalInput < 0 && speed > 38 && speed < 100) { sh.play_decHigh(); } }