Then item classes (e.g., “Plant.cs”) are created, where item can be stacked 50 per inventory slot (see Figure 2.).
So, there would be a static class created that obtains a list with all the items that could be encountered by the player. Then, the class where player would store the inventory should be created. The inventory system class, would hold a list that holds all the items that are currently stored in the inventory (see Figure 3.).