void Update() { if (pairedSnapObject != null) { // check to see if the pairedSnapObject has moved away Rigidbody rb = pairedSnapObject.GetComponent <Rigidbody>(); if (rb != null) { if (!rb.IsSleeping()) { if (!pairedSnapObject.CheckForTarget()) { ObjectHasUnslotted(pairedSnapObject); } } } } }