O'Reilly logo

Unity Game Development Scripting by Kyle D'Aoust

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

In this chapter, you learned how to create three different kinds of items. First, we created a class of items that would affect the player upon activation. Then, we delved into a class for melee items that affect other GameObjects. Finally, we created a class for projectile items. All of these classes have similar properties and methods, yet each one is used slightly different each time.

In the next chapter, we will go over how to create an inventory system. First, we will figure out how to make a storage system that fits our game. Next, we'll create a GUI-based interface system so that the player can interact with their inventory easily. Finally, we'll create a Quick Equip system. This will allow the player to equip or use various items ...

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