Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

Unity Mobile Game Development: Game State

In this Unity tutorial, we'll learn how to code a game's state or logic to keep track of things like timers, kills, and rounds. Software required: Unity 3.4.

Intermediate
1h 57m
(3)

Created by

Last Updated May 25, 2017

Course Thumbnail
  • Course

Unity Mobile Game Development: Game State

In this Unity tutorial, we'll learn how to code a game's state or logic to keep track of things like timers, kills, and rounds. Software required: Unity 3.4.

Intermediate
1h 57m
(3)

Created by

Last Updated May 25, 2017

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

In this Unity tutorial, we'll learn how to code a game's state or logic to keep track of things like timers, kills, and rounds. Through these lessons, we'll examine our game design doc and build game-play functionality. We'll begin with creating a simple count-down timer and how to let other scripts cleanly access it. Then we'll learn how to start and end our game with a splash screen to hide the level. Next we'll create functions for the various parts of a game, like winning a round, pausing the game, killing an enemy, saving our data, resetting our game, and game over. Finally we'll take a quick look at randomly spawning our player. A game's internal logic is one of the most important parts of any game's development. By learning how to deal with many common game states, we can extend them to fit our own game's needs. Software required: Unity 3.4.

Unity Mobile Game Development: Game State
Intermediate
1h 57m
(3)
Table of contents

Get started with Pluralsight