Ejemplo n.º 1
0
        void Idle_Enter()
        {
            // get a plan to run that will get us from our current state to our goal state
            _actionPlan = _planner.Plan(GetWorldState(), GetGoalState());

            if (_actionPlan != null && _actionPlan.Count > 0)
            {
                CurrentState = MinerBobState.GoTo;
                Debug.Log("got an action plan with {0} actions", _actionPlan.Count);
            }
            else
            {
                Debug.Log("no action plan satisfied our goals");
            }
        }