public void RayExit() { ResetMat(); // Detach object from hand if (pointerHand) { pointerHand.DetachObject(gameObject); } if (throwable) { throwable.Detach(); } }