//Checks if car is in the water and slows the vehicle down. private void IsVehicleInWater() { if (CarCollider2D.IsTouchingLayers(Water) && !inWater) { inWater = true; Death.Freeze(); } }