Ejemplo n.º 1
0
 public void Start()
 {
     scorekeeper    = globalScore.Instance;
     dialogueSystem = MainInstances.Get <DialogueSystem>();
     stringRegistry = MainInstances.Get <StringRegistry>();
     beginTutorial();
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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
        }
Ejemplo n.º 4
0
 private void Start()
 {
     Instance       = this;
     dialogueSystem = MainInstances.Get <DialogueSystem>();
     stringRegistry = MainInstances.Get <StringRegistry>();
 }