예제 #1
0
 protected virtual void Awake()
 {
     storedActionQueue = new Queue <GOAPAction>();
     actionQueue       = new Queue <GOAPAction>();
     Provider          = GetComponent <IGOAP>();
     Planner           = new GOAPPlanner();
     FSM = new GOAPFSM();
     AvailableActions = GetComponentsInChildren <GOAPAction>();
     foreach (var action in AvailableActions)
     {
         action.Initialize(this);
     }
     Goals = Goals.OrderByDescending(goal => goal.Priority).ToList();
 }
예제 #2
0
 public IdleState(GOAPFSM _owner) : base(_owner)
 {
 }
예제 #3
0
 public GOAPFSMState(GOAPFSM _owner)
 {
     Owner = _owner;
 }