Chapter 2. Inventory GUIs

In this chapter, we will cover the following topics:

  • Creating a simple 2D mini-game – SpaceGirl
  • Displaying single object pickups with carrying and not-carrying text
  • Displaying single object pickups with carrying and not-carrying icons
  • Displaying multiple pickups of the same object with text totals
  • Displaying multiple pickups of the same object with multiple status icons
  • Revealing icons for multiple object pickups by changing the size of a tiled image
  • Displaying multiple pickups of different objects as a list of text via a dynamic List<> of PickUp objects
  • Displaying multiple pickups of different objects as text totals via a dynamic Dictionary<> of PickUp objects and "enum" pickup types
  • Generalizing multiple icon displays using ...

Get Unity 5.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.