void UpdateUI_Speed() { if (vehicleMovement != null && shipUI != null) { shipUI.SetSpeedDisplay(Mathf.Abs(vehicleMovement.speed)); } }
void UpdateUI_Speed() { //If we have a VehicleMovement and ShipUI reference, update it if (vehicleMovement != null && shipUI != null) { shipUI.SetSpeedDisplay(Mathf.Abs(vehicleMovement.speed)); } }