void Draw(ClickedNodeInfo info, Vector2 mousePos)
    {
        Rect startRect = info.ConPoint.OffsetRect;

        startRect.position += info.EditorNode.Rect.position;

        Vector3 startPos  = startRect.position + startRect.size * .5f;
        float   dirChange = 1f;

        if (startRect.x > mousePos.x)
        {
            dirChange = -1f;
        }

        Handles.DrawBezier(
            mousePos,
            startRect.center,
            mousePos + (Vector2.left * dirChange) * 50f,
            startRect.center - (Vector2.left * dirChange) * 50f,
            Color.white,
            null,
            2f
            );
    }
 public void Reset()
 {
     inNode      = null;
     outNode     = null;
     GUI.changed = true;
 }
    public void SetOutNode(FunctionGraphEditorNode node, ConnectionPoint p, int nodeChildIndx)
    {
        outNode = new ClickedNodeInfo(node, p, nodeChildIndx);

        TryCreateConnection();
    }