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 - adding a Player GameObject

  1. Add Player to Scene0. We also need to make changes to Scene1 and Scene2.
  2. Click on GameManager and make sure its Transform Position is 0,0,0.
  3. Add Player to Scene0.
  4. Set the Transform Position for Player to 0,1,0.
  5. Make Player a child object of the GameManager by dragging Player onto GameManager. Why?
    • Player needs to be able to exist in every Scene
    • Since GameManager is already allowed to exist in all Scenes as a result of the DontDestroyOnLoad() method called in StateManager, any child objects of GameManager will also be allowed to exist in all Scenes
  6. I suggest adding Directional Light to Scene0 so everything added to the Scene isn't dark.
  7. Make it a child of GameManager as well so that all Scene instances will ...
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