Skip to Main Content
Unity Certified Programmer: Exam Guide
book

Unity Certified Programmer: Exam Guide

by Philip Walker
June 2020
Intermediate to advanced content levelIntermediate to advanced
762 pages
16h 41m
English
Packt Publishing
Content preview from Unity Certified Programmer: Exam Guide
Managing Scripts and Taking a Mock Test

In this chapter, we are going to continue structuring our game by applying a Singleton design pattern to our GameManager script. This will allow our game to move on to another scene while keeping the script managers functioning and preventing them from being wiped (thereby preserving our data). We will then make a start with other details of our script and observe how information (such as the player's lives) travels through the game's frameworks. If and when the player dies, a life is deducted. If and when the player loses all of their lives, the game over scene will be triggered.

We will be extending our original code and introducing enemy points so that when we hit our enemies with bullets, the enemy ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Unity Certified Programmer Exam Guide - Second Edition

Unity Certified Programmer Exam Guide - Second Edition

Philip Walker
Unity 3D Game Development

Unity 3D Game Development

Anthony Davis, Travis Baptiste, Russell Craig, Ryan Stunkel

Publisher Resources

ISBN: 9781838828424Supplemental Content