© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
V. G. BruscaAdvanced Unity Game Developmenthttps://doi.org/10.1007/978-1-4842-7851-2_9

9. Player and Game State Classes Part 1

Victor G Brusca1  
(1)
Edison, NJ, USA
 
In this chapter, we’re going to take a look at the classes that are responsible for tracking the player and game states. There is a lot of code for us to review, so I’ve separated the review into two chapters. The classes involved with this two-chapter review are listed as follows:
  1. 1.

    PlayerInfo     (Chapter 09: Part 1)

     
  2. 2.

    TrackScript     (Chapter 09: Part 1)

     
  3. 3.

    PlayerState     (Chapter 09: Part 1)

     
  4. 4.

    GameState     (Chapter 10: Part 2)

     

The first two classes listed, PlayerInfo and TrackScript, are ancillary ...

Get Advanced Unity Game Development: Build Professional Games with Unity, C#, and Visual Studio now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.