public void JsonWrite() { var json = LitJson.JsonMapper.ToJson(DebugStringData); #if UNITY_METRO && !UNITY_EDITOR LibForWinRT.WriteFileText("Debug", Name + ID + ".json", json); #else #endif }
/// <summary> /// ファイルに書き出す /// </summary> void FileWrite() { string json = LitJson.JsonMapper.ToJson(Data); #if UNITY_METRO && !UNITY_EDITOR LibForWinRT.WriteFileText("Database", name + ".json", json); #else var path = Application.persistentDataPath + "/Database/"; if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } File.WriteAllText(path + name + ".json", json); #endif }