Example #1
0
        private Z LoadData(string path)
        {
            return(ToolForJson <Z> .LoadJsonData("", path, false));

            //Z data = Activator.CreateInstance<Z>();
            //data = ToolForJson<Z>.LoadJsonData("", path,false);
            //string filePath = EditorUtility.OpenFilePanel("Select MyData To Edit", SavePath() != "" ? Application.streamingAssetsPath + SavePath() : Application.streamingAssetsPath, "json");

            //if (!string.IsNullOrEmpty(filePath))
            //{
            //    var fin = filePath.Split("/"[0]);
            //    loadedName = fin[fin.Length - 1];
            //    string dataAsJason = File.ReadAllText(filePath);
            //    data = JsonUtility.FromJson<Z>(dataAsJason);
            //}
            //return data;
        }
Example #2
0
 private void SaveLocalizationData(Z data, string path)
 {
     ToolForJson <Z> .SaveJsonData(data, path);
 }