private void Update() { if (isConnecting) { Vector3 cursorPosition = ProjectMath.GetCursorPosition(); if (selectedConnector) { selectedConnector.DrawLineToPosition(cursorPosition); } else if (selectedPivot) { selectedPivot.DrawLineToPosition(cursorPosition); } } }