Add an item to my inventory - UnityScript / JS

Posted 20 March 2013 - 10:30 AM

Hello i got stuck on inventory script and i really could use some help here. I have three scripts one for loot, second for inventory and third for chest, When i open a chest it will generate a random loot and i want to be able to click on item in this loot window and this item will be transferred to my inventory. I just cant make it work, i managed to remove the item from loot window after i click on it but not move it into my inventory.
I am using UnityScript, could anyone help me please

Re: Add an item to my inventory - UnityScript / JS

Posted 20 March 2013 - 11:44 AM

So have you checked the code that is checking that the button is being clicked is being hit, as well as the code to invoke the inventory window? It's telling you what you need to do to resolve the problem.