On to the final boss

With that last step, we've slain or cuddled the penultimate dragon or kitten:

  • Compare two flipped-over cards to see if they match (note: if they match, we should remove the cards from the table. If they don't match, we should flip them back over).

The last checkbox awaits: detecting victory and showing the endgame message with a Play Again button. Onward, to victory!

Endgame

With the amount of emotional and temporal engagement you're expecting from your players with this game, it would be criminal to skimp on the endgame. Let's close the loop by showing the player a congratulatory message with an option to play again when we detect that all of the matches have been found.

Get Unity 4.x Game Development by Example Beginner's Guide 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.