예제 #1
0
    public bool GetValue()
    {
        if (receivingFrom != null)
        {
            return(receivingFrom.GetValue());
        }

        return(false);
    }
예제 #2
0
        public void RecalculateOutput()
        {
            string     output;
            OutputNode outputNode = GetOutputNode();

            if (outputNode != null)
            {
                output = outputNode.GetValue();
            }
            else
            {
                output = "Add an 'Output' node to get started";
            }

            if (output != CachedOutput)
            {
                CachedOutput = output;
                OnOutputHasChanged?.Invoke();
            }
        }