Chapter 9, Start Building a Game and Get the Basic Structure Running

Pop quiz – understanding GameObjects

Q1

The Reference Manual and the Scripting Reference.

Q2

They are destroyed.

Q3

Each State would need to call the GetComponent() method which takes time. Since States already have access to StateManager, StateManager can call GetComponent() once and store a reference to GameData.

Q4

The GameManager GameObject does not get destroyed when the Scene changes. Any GameObject that is a child of GameManager also won't be destroyed.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.156.93