Hi,
I am currently making a game in which you travel across an island search for certain items. When you find one, you click it and collect it (I already have a working script for this). I want to have a list where all the items you need to find are written and when you collect an item, it is removed from the list.
Can anybody help me?
Thanks
have a gameobject in the scene (player or separate) with a script and a
public List<GameObject>
, which should show up in the inspector. assign all collectibles to it. whenever the player collects an item you can call Remove on that list with the gameobject as the parameter. Count tells you the current amount of items.