Hi,
What do I have to do to delete all save date with a button press?
I have a button in a scene which should reset the game. Right now it clears PlayerPrefs.
PlayerPrefs.DeleteAll ();
But this seems not to include the conversations.
So how do I delete these?
Many thanks,
Clear Conversation Prefs
Re: Clear Conversation Prefs
Hi,
To reset the Dialogue System's environment to its starting state (i.e., as originally defined in your dialogue database), call DialogueManager.ResetDatabase.
To reset the Dialogue System to contain only the initial database:
To keep any extra databases you've loaded but simply reset to their starting values:
If you're only using one dialogue database, there's no difference between the two.
To reset the Dialogue System's environment to its starting state (i.e., as originally defined in your dialogue database), call DialogueManager.ResetDatabase.
To reset the Dialogue System to contain only the initial database:
Code: Select all
using PixelCrushers.DialogueSystem;
...
DialogueManager.ResetDatabase(DatabaseResetOptions.RevertToDefault);
Code: Select all
DialogueManager.ResetDatabase(DatabaseResetOptions.KeepAllLoaded);