/// <summary> /// Draws a node connection from start to end with specified vectors /// </summary> public static void DrawConnection(Vector2 startPos, Vector2 startDir, Vector2 endPos, Vector2 endDir, Color col) { #if NODE_EDITOR_LINE_CONNECTION DrawLine(startPos, endPos, col * Color.gray, null, 3); #else NodeEditorGUI.DrawBezier(startPos, endPos, startPos + startDir * 80, endPos + endDir * -80, col * Color.gray, null, 3); #endif }