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

Refactoring level 2

At this point, our project is composed of two scene files; a main scene file that contains the persistent _global GameObject hierarchy, and the LEVEL1 scene file that contains the _level1 hierarchy for all of the level 1 scripts and objects. While TESTBED2 and TESTBED3 were designed to be played as standalone levels, our final game framework is not. Hence, we now need to port and integrate the remaining game content into this pattern.

  1. Open the TESTBED2 scene file into the editor. Locate the _global and _level2 GameObjects in the Hierarchy tab.
    Refactoring level 2
  2. Copy the _level2 GameObject with Ctrl + C.
  3. Create a new scene file named LEVEL2.
  4. Paste ...

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