public static T PlayerGetEnum <T>(string key, T defaultValue) { string enumName = PlayerPrefs.GetString(key, defaultValue.ToString()); return(StringConvert.NameToEnum <T>(enumName)); }