Reloading
We are about to dig into a primer on the thick and complex subject of C# scripting. Before we do, we need to get our chapter's Unity scene set up inside the Unity editor; let's perform the steps to do this:
- First, let's make a prefab out of our
Manager
object by selecting theManager
object and dragging it down to thePrefabs
directory in the Project View. - With the Chapter 3, I Am in Control, scene still loaded, we need to navigate to
Assets
/Scene
in the Project View and double-click on theChapter 2.unity
scene file. - In the Hierarchy view, delete
Platform
,Hello
, andWorld
. - Click
File
on the main menu, and click onSave Scene As...
. - Name the file
Chapter4
and click onSave
. - To keep a copy of this file in the current state, click on
File
, followed bySave Scene As..
. - Name the file
Fresh
and click onSave
. - In the
Assets
/Scene
folder, double-click onChapter4
to load it again. - Select the
Manager
prefab and drag it into the Hierarchy view. - In the Inspector, in the Keyword Manager component...