public CanonicalRMaterial(string s, RMaterialProperties mp) { this.materialName = s; this.materialTemplate = mp; }
public void UpdateTemplate(RMaterialProperties t) { this.properties = t; update = UpdateTemplate; resetPropertiesToTemplate (t); }
void resetPropertiesToTemplate(RMaterialProperties t) { this.rigidbody.mass = t.mass; this.GetComponent<MeshRenderer> ().material = t.renderMaterial; }
public static void noop(RMaterialProperties t) { }