There is a lot covered in this chapter. The core of the chapter was to create a usable Inventory System. We began the chapter by discussing the Weighted Inventory and gave a brief overview of its concept. Then we determined the item types we are going to be using for our game.
We created the scripts
InventorySystem.cs. These scripts were then utilized as a starting point to design and develop our inventory. We then updated the
GameMaster.cs script to test the basics of the newly created scripts and be able to view the data within the Unity IDE by serializing the attributes. We did this by instantiating an
InventoryItem and inserting it into the
InventorySystem and validated the operation visually through ...