Exemple #1
0
 private void CallOnEnterOnQueuedNodes()
 {
     // Make sure to call on enter on any queued new traversals.
     while (requestedTraversals.Count != 0)
     {
         int           i    = requestedTraversals.Dequeue();
         BehaviourNode node = tree.Nodes[i];
         node.OnEnter();
         OnChildEnter(node);
     }
 }
        private void CallOnEnterOnQueuedNodes()
        {
            // Make sure to call on enter on any queued new traversals.
            while (_requestedTraversals.Count != 0)
            {
                int           i    = _requestedTraversals.Dequeue();
                BehaviourNode node = _tree.allNodes[i];
                node.OnEnter();

                if (node.CanTickOnBranch())
                {
                    _branchTicks.Push(i);
                }

                CallOnChildEnter(node);
            }
        }