/// <summary> /// <para>Sets the value of the preference identified by key.</para> /// </summary> /// <param name="key"></param> /// <param name="value"></param> public static void SetInt(string key, int value) { if (!PlayerPrefs.TrySetInt(key, value)) { throw new PlayerPrefsException("Could not store preference value"); } }