September 2013
Beginner
292 pages
6h 19m
English
We are going to instantiate the BeginState class to create an instance object in the memory. This will demonstrate how objects are created. Before we can do this, we first need to attach the StateManager script to a GameObject. To do so, perform the following steps:
StateManager script to the Main Camera GameObject.
The BeginState() method in the BeginState class is a special method known as a constructor. It serves the same purpose as the Start() method or the Awake() method in ...