Esempio n. 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);
        }
Esempio n. 2
0
 public void StartGraph()
 {
     OnGraphStart?.Invoke();
     m_currentNode = m_nodeCollection.GetEntryNode();
     m_currentNode?.OnNodeEnter(graphControls);
 }