Win or Lose: Getting Back into the Action

We’ve created Scenes for our Game Over and Game Win scenarios, but we need to get the player back into the action. Game Over offers the player a chance to retry the level, restart the game, or quit, while Game Win offers the player a chance to restart the game or quit.

Neither of those buttons does anything right now, so we’re going to tie some small bits of code to them to make them fully functional.

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation 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.