void OnCollisionEnter(Collision col) { if (isConnected || (col.gameObject.tag != connectableTag)) { return; } isConnected = true; attachedObject = col.gameObject; rope.AttachObject(attachedObject, rope.Joints.Count - 1, false); if (HUD) { HUD.text = "Hook Connected"; } }