Exemple #1
0
 protected override void Awake()
 {
     myAgent = GetComponent <GoapAgent>();
     myAgent.WorldStateChecks.Add(CheckWorldState);
     SatisfiesStates.Add(new GoapState("Has Patrol Node", true));
     myGoTo = GetComponent <GoToPatrolNodeAction>();
 }
Exemple #2
0
    protected override void Awake()
    {
        myAgent  = GetComponent <GoapAgent>();
        MyWeapon = GetComponent <GoapAI>().MyGun;

        RequiredStates.Add(new GoapState("Aimed At Player", true));
        SatisfiesStates.Add(new GoapState("Shoot At Player", true));
    }
Exemple #3
0
 protected override void Awake()
 {
     myAgent = GetComponent <GoapAgent>();
     myAgent.WorldStateChecks.Add(CheckWorldState);
     RequiredStates.Add(new GoapState("Looking At Player", true));
     SatisfiesStates.Add(new GoapState("Aimed At Player", true));
     MyWeapon = GetComponent <GoapAI>().MyGun;
 }
Exemple #4
0
 protected override void Awake()
 {
     myAgent = GetComponent <GoapAgent>();
     myAgent.WorldStateChecks.Add(CheckWorldState);
     MyWeapon = GetComponent <GoapAI>().MyGun;
     //RequiredStates.Add(new GoapState("In Weapon Range", true));
     SatisfiesStates.Add(new GoapState("In Weapon Range", true));
 }