Wheel Collider frictions?

I was wondering if someone can help me convert the following Javascript code to C#?

wheelRR.forwardFriction.stiffness = currentForwardFriction;
		wheelRL.forwardFriction.stiffness = currentForwardFriction;
		wheelFL.forwardFriction.stiffness = currentForwardFriction;
		wheelFR.forwardFriction.stiffness = currentForwardFriction;

		wheelRR.sidewaysFriction.stiffness = currentSidewayFriction;
		wheelRL.sidewaysFriction.stiffness = currentSidewayFriction;
		wheelFL.sidewaysFriction.stiffness = currentSidewayFriction;
		wheelFR.sidewaysFriction.stiffness = currentSidewayFriction;

Need an answer as soon as possible, Thanks :wink:

I’ve changed it to this but it seems really impractical:

WheelFrictionCurve wheelRRforward = wheelRR.forwardFriction;
		wheelRRforward.stiffness = currentForwardFriction;
		WheelFrictionCurve wheelRLforward = wheelRL.forwardFriction;
		wheelRLforward.stiffness = currentForwardFriction;
		WheelFrictionCurve wheelFLforward = wheelFL.forwardFriction;
		wheelFLforward.stiffness = currentForwardFriction;
		WheelFrictionCurve wheelFRforward = wheelFR.forwardFriction;
		wheelFRforward.stiffness = currentForwardFriction;

		WheelFrictionCurve wheelRRsideways = wheelRR.sidewaysFriction;
		wheelRRsideways.stiffness = currentSidewayFriction;
		WheelFrictionCurve wheelRLsideways = wheelRL.sidewaysFriction;
		wheelRLsideways.stiffness = currentSidewayFriction;
		WheelFrictionCurve wheelFLsideways = wheelFL.sidewaysFriction;
		wheelFLsideways.stiffness = currentSidewayFriction;
		WheelFrictionCurve wheelFRsideways = wheelFR.sidewaysFriction;
		wheelFRsideways.stiffness = currentSidewayFriction;

Is there a neater, more efficient way to do this?

Thanks :wink: