Exemple #1
0
    private void Update()
    {
        oldAction = newAction;
        newAction = root.MakeDecision(agent) as AgentAction;
        if (newAction == null)
        {
            newAction = oldAction;
        }

        newAction.Execute();
    }
        // --------------------------------------------------------------------------------

        public void Update()
        {
            if (m_boundInputState == null)
            {
                return;
            }

            m_boundInputState.Update();
            if (m_boundInputState.ConditionsMet())
            {
                m_action.Execute(m_boundInputState.GetValue());
            }
        }