Skip to Content
Learning C# by Developing Games with Unity 3D Beginner's Guide
book

Learning C# by Developing Games with Unity 3D Beginner's Guide

by Terry Norton
September 2013
Beginner content levelBeginner
292 pages
6h 19m
English
Packt Publishing
Content preview from Learning C# by Developing Games with Unity 3D Beginner's Guide

Time for action – setting up another Scene

We're going to create a new Scene for BeginState. As a result, we don't want the StateManager object to be a Component of the Main Camera anymore. We'll add StateManager to another GameObject in the new Scene. In order to do so, perform the following steps:

  1. Remove the StateManager Component from the Main Camera.
  2. Make a new Scene by selecting on the menu File | New Scene.
  3. In the menu, navigate to GameObject | Create Empty.
  4. Rename the GameObject to GameManager.
  5. Add the StateManager script to the GameManager.
  6. In the menu, navigate to File | Save Scene as....
  7. Save the Scene as BeginningScene in the Scenes folder.
  8. Click on Play to verify if the State Machine is working as before.

At this point, after clicking on

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning C# by Developing Games with Unity 2019 - Fourth Edition

Learning C# by Developing Games with Unity 2019 - Fourth Edition

Harrison Ferrone
Unity 3D Game Development

Unity 3D Game Development

Anthony Davis, Travis Baptiste, Russell Craig, Ryan Stunkel

Publisher Resources

ISBN: 9781849696586Other