Chapter 3. Implementing Timers

In this chapter, we will cover these recipes:

  • Implementing a numeric timer
  • Creating a linear timer
  • Implementing a radial timer
  • Creating a mixed timer
  • Creating a well-formatted timer
  • Developing a well-formatted countdown that changes

Introduction

In this chapter, we are going to implement different kinds of timers and countdowns. These serve many different purposes in games, such as indicating to the player how much time he has left to complete a level or after how long he will be able to use a certain ability again. Timers are also a good way for players to experience flow throughout the game. On the other hand, countdowns can indicate how much time is remaining to complete a task, depending on the aspect of gameplay that ...

Get Unity UI Cookbook 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.