Пример #1
0
 public static void WriteToFile(string path, string text, ZipDelegate zip = null)
 {
     if (zip != null)
     {
         text = zip.zip(text);
     }
     PlayerPrefs.SetString(path, text);
 }
Пример #2
0
		public static void WriteToFile(string path, string text, ZipDelegate zip=null){
			CCDebug.Log ("FileUtils:writeToFile {0}", path);
			if (zip != null)
				text = zip.zip (text);
			if (File.Exists (path)) {
				File.Delete(path);
			}
			File.WriteAllText (path, text);
		}
Пример #3
0
 public static void WriteToFile(string path, string text, ZipDelegate zip = null)
 {
     CCDebug.Log("FileUtils:writeToFile {0}", path);
     if (zip != null)
     {
         text = zip.zip(text);
     }
     if (File.Exists(path))
     {
         File.Delete(path);
     }
     File.WriteAllText(path, text);
 }
Пример #4
0
		public static void WriteToFile(string path, string text, ZipDelegate zip=null){
			if (zip != null)
				text = zip.zip (text);
			PlayerPrefs.SetString (path, text);
		}