Reset All Variables To Initial Value
Posted: Sun Jan 20, 2019 7:09 pm
Hi, I would like to reset all variables to their initial value when my scene is loaded. Is there a simple way to do so?
Thanks!
Thanks!
Support and discussion forum for Pixel Crushers products
https://www.pixelcrushers.com:443/phpbb/
https://www.pixelcrushers.com:443/phpbb/viewtopic.php?t=1970
Code: Select all
using UnityEngine;
using PixelCrushers.DialogueSystem;
public ResetDatabaseOnStart : MonoBehaviour
{
void Start()
{
DialogueManager.ResetDatabase(DatabaseResetOptions.KeepAllLoaded);
}
}