void InputForVehicle() { if (player.AssignedAvatar() == null) { return; } Vehicle vehicle = player.AssignedAvatar().ControlledVehicle(); if (!vehicle) { return; } vehicleInput.SetVehicle(vehicle); vehicleInput.OnInput(); }