/// <summary>
 /// Ticks (steps) the tree once.
 /// The tree must be started beforehand.
 /// <see cref="Start"/>
 /// </summary>
 public void Update()
 {
     if (isTreeInitialized && mainIterator.IsRunning)
     {
         UpdateTimers();
         mainIterator.Update();
     }
 }
Ejemplo n.º 2
0
        public void Update()
        {
            if (_bTreeInitialized && _mainIterator.IsRunning)
            {
                if (_observerAborts.Count != 0)
                {
                    tickObservers();
                }

                _mainIterator.Update();
            }
        }
Ejemplo n.º 3
0
        public void Update()
        {
            if (_bTreeInitialized && _mainIterator.IsRunning)
            {
                if (treeTickNodes.Length != 0)
                {
                    NodeTreeTick();
                }

                if (_observerAborts.Count != 0)
                {
                    TickObservers();
                }

                _mainIterator.Update();
            }
        }