Page 1 of 1

Dialogue Manager Variables and Conversations reset

Posted: Fri Jan 06, 2023 1:12 pm
by Albyd
Hi there,
There's a way to reset the Database when I Load a scene?
As reset, I mean turn the conversations and variables to their default state, doing so, when I Restart the game (and load reload the scene) the dialogues will start again from the beginning.

Thanks

Re: Dialogue Manager Variables and Conversations reset

Posted: Fri Jan 06, 2023 2:05 pm
by Tony Li
Yes, use DialogueManager.ResetDatabase() in C#, or add a SaveSystemMethods and TimedEvent component to a GameObject in the scene. Configure the TimedEvent event to call SaveSystemMethods.ResetGameState.