예제 #1
0
        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;
        }
예제 #2
0
 public BTAction(BTAction prototype)
     : base(prototype)
 {
     m_status_backup = BTNodeStatus.True;
     m_is_running    = false;
 }
예제 #3
0
 public void AddCurrentActions(BTAction action)
 {
     m_current_actions.Add(action);
 }