Page 1 of 1

How to save dialogues manually and call a function on close application

Posted: Thu Aug 04, 2022 12:46 pm
by rauljl1
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.

Re: How to save dialogues manually and call a function on close application

Posted: Thu Aug 04, 2022 7:15 pm
by Tony Li
Hi,

If you're using AutoSaveLoad, I recommend setting up the save system.

Then write a custom saver to save your player data.