Back to the Unity Editor

In the GameManager prefab, we now have an array section for outer wall tiles. We will first need to set this up to reference the three different outer wall tiles that should already be in your Prefabs folder. You can add them by following these steps:

  1. Select the GameManager prefab in the Prefabs folder.
  2. Select the Size field under the Outer Wall Tiles section of the Board Manager component, set it to 3 and press Enter.
  3. Drag and drop the outer wall tiles to the newly created outer wall tiles element fields.

We then need to add the DungeonManager script to the GameManager prefab. You can do that by following these steps:

  1. Select the GameManager prefab in the Prefabs folder.
  2. Click on the Add Component button under Scripts | DungeonManager.cs ...

Get Procedural Content Generation for Unity Game Development 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.