I was thinking to create a script that make me take one object, for example that's on the table, I've created the object and i've make a collision cube larger than the object and made it a trigger (that's the space in witch the player must be to press space and take the object).
I've made the script but it doesn't work because it needs to press "space" only when I hit the collision cube, not when I'm standing in it.
How can I made something like my idea?