Hi, I created my own inventory system using the method of saving the items' string values in a arraylist.
So when the game is loaded, a FSM will create gameobject items by checking each of the string value in the arraylist for example: 0- touchlight, 1- rope, 2- meat.
That's the method I came up with since arraylist can't save gameobject directly. I am wondering if this is the best method or is there a better method?
Thanks