public static void SaveDataFile(string data, string fileName) { data = Ulti.Base64Encode(data); string path = GetDataPath(fileName); Debug.Log("Save file: " + path); WriteAllText(path, data); }
public static string LoadDataFile(string fileName) { string path = GetDataPath(fileName); if (Exists(path)) { Debug.Log("Load file: " + path); string data = ReadAllText(path); return(Ulti.Base64Decode(data)); } return(string.Empty); }