Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        HealthAppraisal();
        IsPatrollingAppraisal();
        PlayerVisionAppraisal();
        PlayerToRobotDistanceAppraisal();

        utilityAI.decisionsToEvaluate.Add(idlingDecision);
        utilityAI.decisionsToEvaluate.Add(patrolDecision);
        utilityAI.decisionsToEvaluate.Add(chaseDecision);
        utilityAI.decisionsToEvaluate.Add(attackDecision);
        utilityAI.decisionsToEvaluate.Add(fleeDecision);
        utilityAI.decisionsToEvaluate.Add(healDecision);

        utilityAI.InitializeUtilityAI();
    }