Exemplo n.º 1
0
        public void MoveNext()
        {
            StateGraph fmGraph = graph as StateGraph;

            if (fmGraph.current != this)
            {
                Debug.LogWarning("Node isn't active");
                return;
            }

            NodePort exitPort = GetOutputPort("exit");

            if (!exitPort.IsConnected)
            {
                Debug.LogWarning("Node isn't connected");
                return;
            }

            StateNode node = exitPort.Connection.node as StateNode;

            node.OnEnter();
        }
Exemplo n.º 2
0
        public void OnEnter()
        {
            StateGraph fmGraph = graph as StateGraph;

            fmGraph.current = this;
        }