예제 #1
0
 protected override void Awake()
 {
     myAgent = GetComponent <GoapAgent>();
     myAgent.WorldStateChecks.Add(CheckWorldState);
     SatisfiesStates.Add(new GoapState("Has Patrol Node", true));
     myGoTo = GetComponent <GoToPatrolNodeAction>();
 }
예제 #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));
    }
예제 #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;
 }
예제 #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));
 }