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!
This website is a participant in the Unity Affiliate Program, an affiliate advertising program that allows participants to earn commissions by advertising and linking to Unity properties, which means we may receive a commission if you click a link and purchase something that our website have recommended.Clicking these links does not cost extra.
This website is not a corporate affiliate or subsidiary of Unity and this site is not endorsed by Unity. “Unity” is a trademark or registered trademark of Unity Technologies or its affiliates in the U.S. (Unity®) and other countries. (or such other notice as separately indicated by Unity)