I have a prefab of a store. This store has a count integer in it to signify how many things the store is holding. But this prefab populates many stores with different int values. So store one could have 3 items while store 2 has 40 items and so forth. I need a way to add all of those up and use it in another script. I don’t even know where to start. An answer would be ideal but if not just a nudge in the right direction would be greatly appreciated. Thank you in advance.
Hi,
So let me understand, you have one prefab store which include multiples stores ? Or have you a prefab store with the count integer for each store ?
Can’t you just drag and drop your prefabs and then use it in scripts like any other gameobjects ?