private void InitDataJson(string file) { string filePath = file; if (File.Exists(filePath)) { string dataAsJson = File.ReadAllText(filePath); dataSet = AnimDataSet.FromJsonData(dataAsJson); } else { Debug.Log("File not exists: " + filePath); } }
private void InitDataJson(string file) { //string filePath = Path.Combine(Application.dataPath, file); string filePath = file; if (File.Exists(filePath)) { string dataAsJson = File.ReadAllText(filePath); dataSet = AnimDataSet.FromJsonData(dataAsJson); } else { Debug.Log("File not exists"); } }