static void CheckUpdateForWin()
 {
     if (!lastDeserialization.HasValue || DateTime.Now - lastDeserialization.Value > TimeSpan.FromMilliseconds(500))
     {
         cachedPlayerPrefs   = new SortedDictionary <string, object>(PlayerPrefsReader.Read());
         lastDeserialization = DateTime.Now;
     }
 }
        static void CheckUpdateForMac()
        {
            var lastWriteTime = PlayerPrefsReader.GetLastWriteTime();

            if (!lastDeserialization.HasValue || lastDeserialization.Value != lastWriteTime)
            {
                cachedPlayerPrefs   = new SortedDictionary <string, object>(PlayerPrefsReader.Read());
                lastDeserialization = lastWriteTime;
            }
        }