예제 #1
0
    public PatrolGoal(GoapAgent agent) : base(agent)
    {
        GoalName = "PatrolGoal";

        RequiredWorldState.Add(new GoapState("At Patrol Node", true));
        //RequiredWorldState.Add(new GoapState("Has Patrol Node", true));
    }
예제 #2
0
    public CombatGoal(GoapAgent agent) : base(agent)
    {
        GoalName = "Combat Goal";

        RequiredWorldState.Add(new GoapState("Player Detected", true));
        RequiredWorldState.Add(new GoapState("Shoot At Player", true));

        myAI = agent.GetComponent <GoapAI>();
    }
예제 #3
0
 public CoverGoal(GoapAgent agent) : base(agent)
 {
     GoalName = "Cover Goal";
     RequiredWorldState.Add(new GoapState("In Cover", true));
     MyHealth = agent.GetComponent <Health>();
 }