Пример #1
0
        private bool LoadTempVersionHash()
        {
            string versionTxt = GameUtility.SafeReadAllText(AssetBundleUtility.GetPersistentTempPath(BuildUtils.VersionsFileName));

            if (!string.IsNullOrEmpty(versionTxt))
            {
                LoadText2Map(versionTxt, ref tempData);
                return(true);
            }
            return(false);
        }
Пример #2
0
        void SaveToDiskCahce(Dictionary <string, string> dict)
        {
            StringBuilder sb = new StringBuilder();

            foreach (var item in dict)
            {
                sb.AppendLine(string.Format("{0}|{1}", item.Key, item.Value));
            }

            //save to disk
            var versionsPath = AssetBundleUtility.GetPersistentTempPath(BuildUtils.VersionsFileName);

            GameUtility.SafeWriteAllText(versionsPath, sb.ToString());
        }