O'Reilly logo

Building an RPG with Unity 5.x by Vahé Karamian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

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 BaseItem.cs, InventoryItem.cs, and 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required