C H A P T E R   9

images

Object Metadata

In the previous chapter you set up the beginnings of your state management system. The ObjectLookup script, using the object's current state and the cursor or other object that interacted with it, will tell you what state the object goes into and the states that any auxiliary objects go into as well. The bulk of the information, animations, audio clips, descriptions, etc. will be stored on the individual object as metadata in the Interactor script. Each action object will need to know all of the information associated with each of its possible states as well as its current state.

The most important variable you ...

Get Beginning 3D Game Development with Unity: The World's Most Widely Used Multi-platform Game Engine 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.