private void ProcessValueChange(CheckboxType checkboxType, bool newValue) { if (newValue /*== true*/ && !_skipNextCheck) { DisableCheckboxesExcept(checkboxType); var result = default(string); switch (checkboxType) { case CheckboxType.Male: result = UserProfileGender.MALE; break; case CheckboxType.Female: result = UserProfileGender.FEMALE; break; case CheckboxType.Other: result = UserProfileGender.OTHER; break; case CheckboxType.PreferNot: result = UserProfileGender.PREFER_NOT; break; default: Debug.LogError($"Unexpected checkboxType: {checkboxType.ToString()}"); break; } base.RaiseEntryEdited(result); } }
public static string ToClass(this CheckboxType type) { return(type.ToString().ToLower()); }