Hi I have a script from the asset store called Grab It. It works how I want it to, except one issue. Any time you are holding an object and it gets destroyed it will tell an error, and won’t allow me to grab any more items. This is the debug info :
MissingReferenceException: The object of type ‘Rigidbody’ has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
Lightbug.GrabIt.GrabIt.Update () (at Assets/AssetStore/GrabIt/Core/Scripts/GrabIt.cs:103)
I either need it to delete another item like a gun with it so it shows people they need to restart the level, or check if it is null. Any help Please? Thanks.
Update
I have figured it out, and took the script down due to full script being shown, and the script is from the Unity Asset Store.