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 DialogueManager() { _dialogueSystem = new DialogueSystem(); }