Dialogue Manager Variables and Conversations reset

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Albyd
Posts: 29
Joined: Thu Jul 21, 2022 4:46 pm

Dialogue Manager Variables and Conversations reset

Post 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
User avatar
Tony Li
Posts: 21020
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue Manager Variables and Conversations reset

Post 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.
Post Reply