How to save dialogues manually and call a function on close application
Posted: Thu Aug 04, 2022 12:46 pm
Hi, Tony.
I have 2 issues.
When I close the application, my dialogues are saved, but my player custom data (which is in a function) not.
On the other hand, when I logout by a function, my player custom data are saved, but dialogues not.
public void saveLocal()
{
Save(jsonLocal);
//I tried this, but didn't work
PlayerPrefs.SetString("Save", PersistentDataManager.GetSaveData());
PlayerPrefs.Save();
}
1. I want to call Save(jsonLocal) on Exit like Save On Quit in the AutoSaveLoad.
2. I want to save dialogues manually in saveLocal(), but didn't work as you see.
Thanks.
I have 2 issues.
When I close the application, my dialogues are saved, but my player custom data (which is in a function) not.
On the other hand, when I logout by a function, my player custom data are saved, but dialogues not.
public void saveLocal()
{
Save(jsonLocal);
//I tried this, but didn't work
PlayerPrefs.SetString("Save", PersistentDataManager.GetSaveData());
PlayerPrefs.Save();
}
1. I want to call Save(jsonLocal) on Exit like Save On Quit in the AutoSaveLoad.
2. I want to save dialogues manually in saveLocal(), but didn't work as you see.
Thanks.