Example #1
0
 void DecideAction()
 {
     m_Action.vectorActions = m_Brain?.DecideAction();
     if (m_Action.vectorActions == null){
         ResetData();
     }
 }
Example #2
0
        void DecideAction()
        {
            if (m_Action.vectorActions == null)
            {
                ResetData();
            }
            var action = m_Brain?.DecideAction();

            if (action == null)
            {
                Array.Clear(m_Action.vectorActions, 0, m_Action.vectorActions.Length);
            }
            else
            {
                Array.Copy(action, m_Action.vectorActions, action.Length);
            }
        }
 void DecideAction()
 {
     m_Brain?.DecideAction();
 }
Example #4
0
 void DecideAction()
 {
     m_Action.vectorActions = m_Brain?.DecideAction();
 }