AIEditor.EditingLogic.CreatingLinkUpdate C# (CSharp) Метод

CreatingLinkUpdate() приватный Метод

private CreatingLinkUpdate ( ) : void
Результат void
        private void CreatingLinkUpdate()
        {
            Cursor cursor = GuiManager.Cursor;

            if (cursor.PrimaryClick)
            {
                // The user clicked, so see if the cursor is over a PositionedNode
                PositionedNode nodeOver = mNodeOver;

                if (nodeOver != null && nodeOver != mCurrentNodes[0] && mCurrentNodes[0].IsLinkedTo(nodeOver) == false)
                {
                    mCurrentNodes[0].LinkTo(nodeOver, (mCurrentNodes[0].Position - nodeOver.Position).Length() );
                }
                
            }

            if (cursor.PrimaryDown == false)
            {
                // If the user's mouse is not down then go back to normal editing mode
                mNewConnectionLine.Visible = false;
                mEditingState = EditingState.None;
                return;
            }
            else
            {
                mNewConnectionLine.Visible = true;
                mNewConnectionLine.RelativePoint1.X =
                    mNewConnectionLine.RelativePoint1.Y = 0;

                mNewConnectionLine.Position = mCurrentNodes[0].Position;

                mNewConnectionLine.RelativePoint2.X = cursor.WorldXAt(0) - mNewConnectionLine.Position.X;
                mNewConnectionLine.RelativePoint2.Y = cursor.WorldYAt(0) - mNewConnectionLine.Position.Y;

            }


        }