public void Save()
 {
     File.WriteAllText(dataPath, playerdata.saveToString());
 }
Beispiel #2
0
 public void Save()
 {
     File.WriteAllText(Path.Combine(Application.streamingAssetsPath, "data.txt"), playerdata.saveToString());
     finalScore.text     = "Score : " + playerdata.score.ToString();
     finalHighScore.text = "High Score : " + playerdata.highScore.ToString();
 }