public void SwapActions() { var enumerator = m_previous_actions.GetEnumerator(); while (enumerator.MoveNext()) { BTAction action = enumerator.Current; if (!m_current_actions.Contains(action)) { action.ExitAction(); } } m_previous_actions.Clear(); List <BTAction> temp = m_previous_actions; m_previous_actions = m_current_actions; m_current_actions = temp; }
public BTAction(BTAction prototype) : base(prototype) { m_status_backup = BTNodeStatus.True; m_is_running = false; }
public void AddCurrentActions(BTAction action) { m_current_actions.Add(action); }