private void SaveData() { savePath = System.IO.Path.GetFullPath(savePath); Debug.Log("Sauvegarde des données : " + savePath); //title.text = System.IO.Path.GetFullPath(savePath); string header = System.DateTime.Now.ToString() + " - Trait visible: " + isDrawingVisible + " - Taille: " + size * 20 + " - Nombre de point: " + pointPositions.Length + "/" + nombreMaxPoint; CSVScript.SaveDataToCSV(savePath, dataPositionCollected, header: header); }
public void SaveDataBis() { int variableAure = PlayerPrefs.GetInt("variableAure"); savePath = System.IO.Path.GetFullPath("C:/Dev/Cassiopee-project/Neurotest/Assets/Users/" + variableAure + ".csv"); PlayerPrefs.SetInt("variableAure", variableAure + 1); List <Vector2> pointPositionCollected = new List <Vector2>(); for (int i = 0; i < pointPositions.Length; i++) { pointPositionCollected.Add(new Vector2(pointPositions[i].x, pointPositions[i].y)); } Debug.Log("Sauvegarde des données : " + savePath); //title.text = System.IO.Path.GetFullPath(savePath); CSVScript.SaveDataToCSV(savePath, pointPositionCollected); GoToNextLevel(); }