public static void Write(string path, string contents) { #if UNITY_WINRT && !UNITY_EDITOR byte[] bytes = System.Text.Encoding.UTF8.GetBytes(contents); File.WriteAllBytes(path, bytes); #else File.WriteAllText(path, contents); #endif }
public static void Write(string path, string contents) { #if UNITY_WINRT && !UNITY_EDITOR byte[] bytes = System.Text.Encoding.UTF8.GetBytes(contents); File.WriteAllBytes(path, bytes); #else File.WriteAllText(path, contents); #endif }