Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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);
 }