void HookedObject() { if (IsHooked == true) { if (Hooked != null) { Hooked.transform.position = transform.position; } if (transform.position.y >= StopHeight && Input.GetMouseButton(0)) { //Put code to do score here GM.IncreaseScore(score_increment); Destroy(Hooked); IsHooked = false; } } }