Hello! Here’s my situation - I stumble on an item (say) with an Item component attached to it. I indicate the player that pressing ‘e’ will pick it up. He hits ‘e’. In my code, I’ve been waiting for this to happen and so it triggered this function that’ll first fetch the item type and add a reference to the respective item Dictionary. after that is DONE, we no longer need the GameObject and therefore call Destroy() on it.
Now comes the trick part, if I destroy it, the components will be gone with their master (the GameObject), which, I assume, would make those references in the Dictionary hopeless!! That’s the crux.
Now I’ve this strange feeling that there exist this method that disconnects the component from the GameObject (or is it just my crazy mind?).
Can you people please show me the way?
TIA
P.S also, where’s the offline docs? its a download, right?