Exemple #1
0
        /// <summary>
        /// An action bailed out of the plan. State has been reset to plan again.
        /// Take note of what happened and make sure if you run the same goal again
        /// that it can succeed.
        /// </summary>
        /// <param name="aborter"></param>
        public void PlanAborted(GoapAction aborter)
        {
            //Debug.Log("<color=red>Plan Aborted</color> " + GoapAgent.PrettyPrint(aborter));
            _agent.AbortPlan();
            if (_myWorkStation == null) return;

            _myWorkStation.StoptWorking(this);
            _myWorkStation = null; // reset work station
        }
Exemple #2
0
 public void RequestNewPlan(GoapAgent agent)
 {
     agent.AbortPlan();
 }