예제 #1
0
 /* ********** Accessors: Event Matches ********** */
 private void setWants()
 {
     if (currEvent == null || (currEvent.isLastEvent && currEvent.isDone()))
     {
         finished = true;
         Debug.Log(TAG + "ended this conversation.");
         return;
     }
     agent        = currEvent.agent.GetComponent <AgentStatusManager>();
     wantInRange  = currEvent.wantInRange;
     wantLookedAt = currEvent.wantLookedAt;
 }
예제 #2
0
    /* Given the set of want looked at, store these conditions */
    public void setWantLookedAt(EventIM.EventSetting w)
    {
        //store what the author wants
        switch (w)
        {
        case (EventIM.EventSetting.TRUE):
            want[0] = true;
            break;

        case (EventIM.EventSetting.FALSE):
            want[0] = false;
            break;

        case (EventIM.EventSetting.DONTCARE):
            dontcare[0] = true;
            break;
        }
    }