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(); }
private void Start() { backgroundObject.SetActive(false); dialogSelector = new DialogSelector(); }