Attach to other coordinat SpringJoint2D from code.

Attach to other coordinat SpringJoint2D from code. Here is code.
using UnityEngine;
using System.Collections;
//var object1 = “Block(1)”;

public class NewBehaviourScript : MonoBehaviour
{
private SpringJoint2D myLight;
public Vector2 connectedAnchor;

void Start ()
{
myLight = GetComponent();
//var object1 = “Block(1)”;
}

void Update ()
{
if(Input.GetKeyUp(KeyCode.Space))
{
//myLight.enabled = !myLight.enabled;
connectedAnchor = new Vector2(4.8F,4.0F);
}
}
}
and he’s don’t work - he’s compile but not work.
Sorry for my maybe mistakes i’am from russia.

I wan’t to attach object with SpringJoint2D to other coordinat