Hello,
I'm working on an inventory for my game and I am adding itmes(game object) in an array, from there I whant to access a javascript to get some variables from there
can anyone tell me how can I do that? I tried everything I could think ...
Inventory.populate(gameObject.Find("Rifle"));
//this is the functin from Inventory.js
static function populate(item:GameObject){
items.push(item);
}
//
for(var i=0;i<items.length;i++){
var itm:GameObject=items*;*
*print(itm.transform.Find("itemDetails"));*
*}*
*```*
*<p>Thanks</p>*