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 one way of creating an inventory system. You may find other ways to create an inventory, but this method should suffice to add an inventory to any game that you create. With this inventory, you can add items, remove items, have multiples of items, set some quick-items, and finally show the inventory as a GUI display.

In the next chapter, we will create Artificial Intelligence, more commonly known as AI. We'll create a simple behavior system to call different events that the AI can do. The AI will run what we'll call internal events, essentially doing stuff that affects the AI GameObject itself. Next we'll create external events, which are actions that will cause the AI to affect other GameObjects such as attacking ...

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