Chapter 8, Developing the State Machine

Pop quiz – understanding State Machine operation

Q1

The State classes also inherit the IStateBase interface. This means every State object is also an IStateBase object, allowing the activeState variable to store any of the State objects.

Q2

The StateManager script has the Update() method and the OnGUI() method. The Update() method calls StateUpdate(), and OnGUI() calls ShowIt().

Q3

All GameObjects in the current Scene are destroyed.

Q4

Absolutely false. Adding States, removing States, and changing the order that the States can switch are a few of the greatest benefits of a State Machine.

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

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