void BrakePedal() { //get brakes input if (Input.GetKeyDown(KeyCode.LeftShift)) { _rig.drag = 3f; _tel.BrakePedal(true);//toggle on brake pedal to telemetry } else if (Input.GetKeyUp(KeyCode.LeftShift)) { _rig.drag = 0.5f; _tel.BrakePedal(false);//toggle off brake pedal to telemetry } }