private static string DictToStr(Dictionary <string, string> d)
 {
     try {
         SerDict sd = new SerDict(d);
         return(JsonUtility.ToJson(sd));
     }
     catch {
         return("");
     }
 }
 private static Dictionary <string, string> StrToDict(string s)
 {
     try {
         SerDict sd = JsonUtility.FromJson <SerDict>(s);
         if ((sd != null) && (sd.productName == Application.productName))
         {
             return(sd.GetDict());
         }
         else
         {
             return(new Dictionary <string, string>());
         }
     }
     catch {
         return(new Dictionary <string, string>());
     }
 }