Ejemplo n.º 1
0
    /* Called on build */
    private void Start()
    {
        TAG += name + " ";

        //load the events
        int i = 0;

        foreach (Transform child in transform)
        {
            EventIM e = child.GetComponentInChildren <EventIM>();
            if (e.nextEvent != null && e.nextEvent.name == "Response") //response doesn't have next until completed
            {
                e.nextEvent.GetComponent <Response>().setDialog(e.gameObject);
            }
            events.Add(e);
            i++;
        }
        //todo fix the dialog for the response
        jm = gameObject.GetComponent <JumpManager>();
        jm.load(events);

        currEvent = jm.getFirstEvent();
        nextEvent = jm.getNextEvent(currEvent);
        setWants();
    }
Ejemplo n.º 2
0
 /* Play the next event concurrently with other active events */
 private void playNextKnown()
 {
     currEvent = jm.getNextEvent(prevEvent); //we already know what it's next was
     setWants();
 }