private void UpdateIdle() { searchingTimer += Time.deltaTime; if (!automaticallySearchForNextPlan || searchingTimer < searchingTime) { return; } // Tries to find a plan based on all available goals Goal goal; UpdateIdle(Planner.FormulatePlan(igoap, igoap.availableActions, igoap.availableGoals, out goal, debug), goal); }
private void UpdateIdle(Goal goal) { // Tries to find a plan based on the specific goal UpdateIdle(Planner.FormulatePlan(igoap, igoap.availableActions, goal, out goal, debug), goal); }