private void Start() { DontDestroyOnLoad(this); Instance = this; DayNum = 1; dialogueSystem = MainInstances.Get <DialogueSystem>(); valueRegistry = MainInstances.Get <ValueRegistry>(); }
public void Continue() { //Debug.Log("Moving from node " + current.name); if (current == null) { //We are done valueRegistry = null; agentRegistry = null; stringRegistry = null; //Dereference return; } current.MoveNext(); //Debug.Log("To node " + current.name); }
public void Play(DialogueSystem system) { if (!Verify()) { Debug.Log("Failed to play DialogueGraph: " + name); return; } //Get dependencies valueRegistry = MainInstances.Get <ValueRegistry>(); agentRegistry = MainInstances.Get <AgentRegistry>(); stringRegistry = MainInstances.Get <StringRegistry>(); currentSystem = system; current = entry; current.MoveNext(); //We started the graph }
private void Awake() { Instance = this; valueRegistry = MainInstances.Get <ValueRegistry>(); }