public void OnInspectorGUI(Action onValueChanged)
{
var newFriction = EditorGUILayout.FloatField("Friction", friction);
var newBounciness = EditorGUILayout.FloatField("Bounciness", bounciness);
if(newFriction != friction) {
friction = newFriction;
onValueChanged();
}
if(newBounciness != bounciness) {
bounciness = newBounciness;
onValueChanged();
}
}