AddDatabase() and ResetDatabase() clarification
Posted: Tue Jul 15, 2025 5:34 pm
I have an initial database set in the inspector of the DialogueManager. I add a specific database everytime I interact with certain things so that I can make these certain objects bark from said database. Here is the method below:
When closing the interaction, I then use DialogueManager.ResetDatabase() to reset the database back to the initial database.
All this is working as expected but I just wanted to confirm if the ResetDatabase() removes the database I just added and if I'm doing this the right way?
Your help would be very much appreciated.
Thank you so much in advance Tony.
Cheers.
Code: Select all
public void Interact()
{
DialogueManager.AddDatabase(sessionsManager.InvestigateBarksDatabase);
DialogueManager.Bark(conversationTitle, transform,null,barkEntryTag);
}
Code: Select all
private void CloseInvestigation()
{
DialogueManager.ResetDatabase();
}
Your help would be very much appreciated.
Thank you so much in advance Tony.
Cheers.