We have almost finished our game and level. For our game to be complete, we will need to create a splash screen and instructions, as well as screens to be displayed when the player has lost or succeeded. These screens will be created using scenes, and navigation between them will be implemented using buttons. To open a particular menu (for example, splash screen, instructions, or game over), we will load the corresponding scene. The background of the splash screen will include the maze created earlier and some animated zombies (idle
). First let's create a prefab for the maze so that it can be reused.
Open the last scene, select the folder Assets | chapter6, create a new prefab (that is, select: Create | Prefab from the Project window), and rename it maze
. Locate the object labeled maze
in the Hierarchy window and drag-and-drop it on the prefab we have just created. This prefab will be accessible from any scene within our project, including the splash screen...