Пример #1
0
 // Output ---
 public float GetOutput(ANNOutputNode node)
 {
     if (node == null)
     {
         Debug.LogWarning(this.name + " => Trying to GetOutput(node) of a 'null' node");
         return(ANNErrorCodes.OUTPUT_ERROR_VALUE);
     }
     if (tickType == TickType.TickOnOutput)
     {
         this.Tick();
     }
     return(node.GetOutput());
 }
Пример #2
0
    public float GetOutput(string nodeName)
    {
        ANNOutputNode n = this.GetOutputNodeFromName(nodeName);

        if (n == null)
        {
            //Debug.LogWarning(this.name + " => Trying to GetInput(name) of a non-existing node");
            return(ANNErrorCodes.OUTPUT_ERROR_VALUE);
        }
        if (tickType == TickType.TickOnOutput)
        {
            this.Tick();
        }
        return(n.GetOutput());
    }