コード例 #1
0
ファイル: GOAPAgent.cs プロジェクト: HalfLobsterMan/0.1_GOAP
 protected virtual void Awake()
 {
     storedActionQueue = new Queue <GOAPAction>();
     actionQueue       = new Queue <GOAPAction>();
     Provider          = GetComponent <IGOAP>();
     Planner           = new GOAPPlanner();
     FSM        = new GOAPFSM();
     GraphAsset = GraphAsset.Clone() as GOAPGraphAsset;
     T_Graph.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;
 }