❔ Hi need help with code for arrays in unity
i have to code a simple game for school where 3 different items r dropped randomly across a plane and the player is supposed to collect them. depending on which item you collect there should be a ui feedback with a button to use said item
we did this with scriptable objects and 3 seperate prefabs that r being instantiated randomly
now how do i acess these collected items and how do i use them
the items r collected in a list when collected how do i acces a specific index of that list? for now i can only use the item with index 0
2 Replies
i didnt want this post to be too long therefore if u need more info pls ask away
the instatiating randomly already works and the scriptable objects do too im just stuck with accessing different index slots of the lsit
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.