예제 #1
0
        private static FlowOutput GetFlowOutput(FlowNode node, LinkedPort str)
        {
            if (node == null)
            {
                return(null);
            }
            var output = node.GetFlowOutput(str.port);

            return(output);
        }
예제 #2
0
        public void LinkFlowPort(FlowNode outputNode, string outputName, FlowNode inputNode, string inputName)
        {
            if (outputNode == inputNode)
            {
                return;
            }
            var output = outputNode.GetFlowOutput(outputName);
            var input  = inputNode.GetFlowInput(inputName);

            if (output == null || input == null)
            {
                return;
            }

            output.LinkInput = input;
        }