//f from 5 to 30 public void SetPlaySpeed() { float f = speedSlider.Value; player.SetSpeed(f); speedText.text = f.ToString("0.0") + "x"; }