From the course: AR Development Techniques 04: Advanced Techniques

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

AR shooting game, part 5

AR shooting game, part 5

From the course: AR Development Techniques 04: Advanced Techniques

Start my 1-month free trial

AR shooting game, part 5

- [Instructor] In this video, we are going to implement a timer in our AR balloon shooting game. We'll add a timer of 30 seconds. And we can shoot the balloons during those 30 seconds. But once the timer goes off, the game will finish and we'll display a game over screen which will show the final score. And there will be a restart button to restart the game. So let's implement all this. First let's create a time left object here. So we'll just copy the score text and score, duplicate it, and position this right here. Change the anchor to top left. And let's name this time left text. And this will be time left. Change the text to time left. And let's make this 30. So our timer will start from 30 seconds. Now let's create a timer script. Right-click, create C# script. I'll name this timer script. Let's create a timer object. Let's add the script. Open it. So let's create a timer. And for that,…

Contents