how to make condition only for an objects from random results that can be touched in unity

i want to make a condition that i can only touch object from the random result

If i get u right u generate some random objects and want to touch only that objects?

Then give the generated objects a tag.
If you touch something, check if the tag is right :slight_smile: