private void AttachRopeToCharacter(GameObject pBalloonObject, Rope pRope, Rigidbody2D pTackBody) { pRope.GetStartOfRope().GetComponent<HingeJoint2D>().connectedBody = pTackBody; DistanceJoint2D balloonJoint= pBalloonObject.GetComponent<DistanceJoint2D> (); balloonJoint.distance = GetMaxBalloonRopeDistance (pBalloonObject); balloonJoint.connectedBody = pTackBody; }