void DecideAction() { m_Action.vectorActions = m_Brain?.DecideAction(); if (m_Action.vectorActions == null){ ResetData(); } }
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(); }
void DecideAction() { m_Action.vectorActions = m_Brain?.DecideAction(); }