01-31-2017 08:21 PM
Hi I
need to update my game and players have in-game money. Is it safe in the
persistent data path?
I could probably test myself... wanted to see if
anyone has experience with it?
I'm using this method in Unity:
public
void Save()
{
BinaryFormatter bf = new BinaryFormatter();
FileStream file = File.Create(Application.persistentDataPath +
"/gamedata.dat");
gamedat data = new gamedat();
data.money= money;
bf.Serialize(file, data);
file.Close();
}