This is script that can helps you, to bring some branches into your gameplay, just if you need to do something interesting.
How it works:
You will need to do something when you'll picked up something. Put some action in infoportion element when it will be added to you, and add Infoportion from "pickup" script. And it's work!
Try it, it's easy!