private void ToggleFromInt(SerializedProperty property, GUIContent label)
{
EditorGUI.BeginChangeCheck();
EditorGUI.showMixedValue = property.hasMultipleDifferentValues;
int num = !EditorGUILayout.Toggle(label, property.intValue > 0, new GUILayoutOption[0]) ? 0 : 1;
EditorGUI.showMixedValue = false;
if (EditorGUI.EndChangeCheck())
{
property.intValue = num;
}
}