If one game object is touched then it should hide any specified game object

Please tell me the script for scenario like "If player would touch or collect one game object then it should hide other specified game object in such a way that the player can easily pass away the other specified game object else no.

im confused by pass away. you mean i think pass through. in which case you destroy the object.


//probably need to use findobjectinscene to find the object to destroy, maybe tag it and find it that way