Exemplo n.º 1
0
        public static Quaternion GetQuaternion(string key, Quaternion defaultValue)
        {
            string encryptedPrefsString = ObscuredPrefs.GetEncryptedPrefsString(key, ObscuredPrefs.EncryptKey(key));

            if (encryptedPrefsString == "{not_found}")
            {
                return(defaultValue);
            }
            return(ObscuredPrefs.DecryptQuaternionValue(key, encryptedPrefsString, defaultValue));
        }