Preparing the Game scene
We will need to have our GameManager and Notification GameObjects as prefabs for this chapter.
From our Menu scene, create these two prefabs by dragging them separately in the folder of your choice in the Project view.
Now, let's create a new scene with Ctrl + N and perform the following steps:
Press Ctrl + S to save it, and enter
Game
as the scene's name.In our new scene, delete the Main Camera GameObject. We won't need it for this scene.
Drag our GameManager prefab from the Project view into the Hierarchy view.
Open the UI Tool wizard by navigating to NGUI | Create a New UI.
Add a new Layer named
Game
.Select this Game layer for the Layer parameter in our UI Tool wizard.
Click on the Create Your UI button.
Select our new Camera GameObject, and set its Background Color to R:
0
, G:0
, B:0
, and A:255
.Note
Make sure your Color selector popup is in the RGBA values and not HSVA. This can be done by using the button next to the Sliders option when you click on a Color parameter...