Quantcast
Channel: Latest Questions by MithosAnnar
Viewing all articles
Browse latest Browse all 60

Can't add GameObjects to ArrayList

$
0
0
I am sending information from my item to my inventory. Telling the inventory to add the item. Gives me a null reference exception. Item.js : inventory.AddItem(this as GameObject); Inventory.js : var items : ArrayList; function AddItem (item : GameObject) { items.Add(item.gameObject); //Error happens here }

Viewing all articles
Browse latest Browse all 60

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>