❔ Item stacking in unity c#
I am trying to get my items to stack in my inventory, so i have added a counter to my script which displays the amount of items currently in the stack, i have added that to my item prefab and my InventoryitemController script. however i am a bit lost on how to actually increment the count value each time a item is added and to stack them properly. This is what i have so far (edited)



