예제 #1
0
    void Start()
    {
        if(!StaticDemo)
            NavAgent.enabled = true;            //We enable the nav agent again, having now positioned the agent.

        DialogManager.SetDialog("...");     //We initialise the dialog and thoughts to create a small initial size for the speech and thought bubbles.
        ThoughtManager.SetDialog("(...)");

       

        IsAlert = true;

        if (!StaticDemo)
        {
            routine = new Routine(DailyRoutine);
            curTask = routine.GetCurrentTask(DaylightScript.GetCurrentTime());

            if (useStateVector)
            {
                stateVector.setupTasks(routine);
            }
        }

        if (!StaticDemo)
            CurrentGoal = new Goal_Scheduler(this, curTask);
        else
            CurrentGoal = new Goal_Scheduler(this, Task.Idle);
    }