O'Reilly logo

Creating E-Learning Games with Unity by David Horachek

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

Putting it all together

Now that we have developed the classes necessary for the InventoryMgr, MissionMgr, and InteractiveObj systems, let's build a scene that illustrates their functionality.

  1. To get started, let's continue from Chapter 1, Introduction to E-Learning and the Three Cs of 3D Games, where we left off. Load the scene and save a copy named chapter2.
  2. Add an instance of InventoryMgr to the Player GameObject by dragging-and-dropping it from the Project tab to the player object. Alternatively, click on Player and select Add component from the Inspector pane. Type in the name InventoryMgr and then click on it to add an instance.
    Putting it all together
  3. Click on Player ...

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