public static bool GetSetting( BoolSetting key ) { return Convert.ToBoolean( PlayerPrefs.GetInt( Enum.GetName( key.GetType(), key ) ) ); }
public static void SetSetting( BoolSetting key, bool value ) { PlayerPrefs.SetInt( Enum.GetName( key.GetType(), key ), Convert.ToInt16( value ) ); PlayerPrefs.Save(); }