Play Again

The winner message sits on screen telling the player to press Space, and Space does nothing. This node makes that line true. One press wipes both scores, hides the message, puts the paddles back in the middle and serves a new ball. Everything it needs is already in the file, so the whole restart is two checks and one small method.

More in Track the Game State

  1. First to Eleven Wins
  2. Show the Winner
  3. Play Again
  4. Tune the Numbers

All 54 topics in the Your First Unity Game