private Vector3 SnapToSprites(Vector3 position) { position = Joint2DEditor.SnapToSprite(this.anchorJoint2D.GetComponent <SpriteRenderer>(), position, 0.13f); if (this.anchorJoint2D.connectedBody != null) { position = Joint2DEditor.SnapToSprite(this.anchorJoint2D.connectedBody.GetComponent <SpriteRenderer>(), position, 0.13f); } return(position); }