8 Victory or Defeat: Win and Lose Conditions

Join our book community on Discord

https://packt.link/unitydev

A qr code with black squares Description automatically generated

Now that we have a basic gameplay experience, it's time to make the game end with the outcomes of winning or losing. One common way to implement this is through separated components with the responsibility of overseeing a set of objects to detect certain situations that need to happen, such as the player's life becoming 0 or all of the waves being cleared. We will implement this through the concept of managers, components that will manage and monitor several objects.In this chapter, we will examine the following manager concepts:

  • Creating ...

Get Hands-On Unity Game Development - Fourth Edition 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.