I'm making a 2D AVG with this nice tool, and I have some questions about variables saving & scene changing.
1. I put Dialogue Manager in every sence, and I untick the "Don't Destory On Load", I wonder if it will affect data saving?
2. I am confused about saving system. I have already put variables and quest states in Initial Database, but they can't work in new scene. In my game, scene changing is only via button clicking, here is my loadscene script:
Code: Select all
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using PixelCrushers.DialogueSystem;
public class ChangeScene : MonoBehaviour
{
public string targetSceneName = "SceneB";
public void OnButtonClick()
{
PixelCrushers.SaveSystem.LoadScene("SceneB");
}