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