Exemple #1
0
        private void TraverseEdge(OutportEdge edge)
        {
            if (!m_currentNode.ContainsOutport(edge))
            {
                Debug.LogError("Ahhhh! Trying to traverse edge from non-current node.");
                return;
            }

            m_currentNode?.OnNodeExit(graphControls);

            if (edge == null)
            {
                StopGraph();
                return;
            }

            m_currentNode = m_nodeCollection.GetNodeById(edge.ConnectedNodeId);
            m_currentNode?.OnNodeEnter(graphControls);
        }
 public bool ContainsOutport(OutportEdge outportEdge)
 {
     return(m_outports.Exists(x => x.Id == outportEdge.Id));
 }