// Expose properties in the inspector for easy adjustment.
var dynFriction: float;
var statFriction: float;
var coll: Collider;
function Start() {
coll = GetComponent.<Collider>();
coll.material.dynamicFriction = dynFriction;
coll.material.staticFriction = statFriction;
}
no example available in C#