private void InitDataBvh(string file) { //string filePath = Path.Combine(Application.dataPath, file); string filePath = file; if (File.Exists(filePath)) { string data = File.ReadAllText(filePath); dataSet = AnimDataSet.FromBvhData(data); } else { Debug.Log("File not exists"); } }
private void InitDataBvh(string file) { string filePath = file; if (File.Exists(filePath)) { string data = File.ReadAllText(filePath); dataSet = AnimDataSet.FromBvhData(data); } else { Debug.Log("File not exists: " + filePath); } SceneController.instance.PushNewFrameData(dataSet.dataList[currentFrameNumber], frameTime); }