Example #1
0
        private void onClickOutPoint(ConnectionPoint outPoint)
        {
            selectedOutPoint = outPoint;

            if (selectedInPoint != null)
            {
                // if connect node isn't the same node
                if (!selectedOutPoint.HasSameNode(selectedInPoint))
                {
                    CreateConnection();
                    ClearConnectionSelection();
                }
                else
                {
                    ClearConnectionSelection();
                }
            }
        }