예제 #1
0
    public void Update()
    {
        if (_newAppraisal)
        {
            // Affective Appraisal
            AffectiveAppraisal.ComputeUserEmotion(History, User);
            foreach (Tutor tutor in Tutors)
            {
                AffectiveAppraisal.ComputeTutorEmotion(History, User, tutor);
            }

            // Empathic Strategy
            Intention intention = EmpathicStrategySelector.SelectIntention(History, Strategies, User);

            // Dialog Selector
            IDialogTree dialogTree = DialogSelector.SelectDialog(History, intention);

            DialogManager.SetDialogTree(dialogTree);
            foreach (Tutor tutor in Tutors)
            {
                DialogManager.SetTutorEmotion(tutor);
            }
        }

        _newAppraisal = DialogManager.Update();
    }
예제 #2
0
 private void Start()
 {
     backgroundObject.SetActive(false);
     dialogSelector = new DialogSelector();
 }