public static OutputNode OutputNode(this BehaviorChain chain)
 {
     return(chain.FirstOrDefault(x => x is OutputNode) as OutputNode);
 }
 public static ConnegOutputNode ConnegOutputNode(this BehaviorChain chain)
 {
     return(chain.FirstOrDefault(x => x is ConnegOutputNode) as ConnegOutputNode);
 }
 public static InputNode InputNode(this BehaviorChain chain)
 {
     return(chain.FirstOrDefault(x => x is InputNode) as InputNode);
 }