CSL_Traffic.VehicleInfoExtensions.ApplySpeedMultiplier C# (CSharp) Method

ApplySpeedMultiplier() public static method

public static ApplySpeedMultiplier ( this vehicle, CarSpeedData data ) : void
vehicle this
data CarSpeedData
return void
        public static void ApplySpeedMultiplier(this VehicleInfo vehicle, CarSpeedData data)
        {
            vehicle.m_acceleration *= data.SpeedMultiplier;
            vehicle.m_maxSpeed *= data.SpeedMultiplier;
        }