public void ApplyBraking(float braking) { braking = Mathf.Clamp(braking, 0f, 1f); float currentbrakeForce = braking * maxBrakeForce; frontRightWheel.ApplyBraking(currentbrakeForce); frontLeftWheel.ApplyBraking(currentbrakeForce); rearLeftWheel.ApplyBraking(currentbrakeForce); rearRightWheel.ApplyBraking(currentbrakeForce); }