Book Image

Mastering Unity 5.x

By : Alan Thorn
Book Image

Mastering Unity 5.x

By: Alan Thorn

Overview of this book

Mastering Unity 5.x is for developers wishing to optimize the features of Unity 5.x. With an in-depth focus on a practical project, learn all about Unity architecture and impressive animation techniques. With this book, produce fun games with confidence.
Table of Contents (16 chapters)
Mastering Unity 5.x
Credits
About the Author
Acknowledgment
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Chapter 4. Player Controls - Typing and Health

The previous chapter began development of player controls by coding a camera waypoint and navigation system. This chapter completes player controls development by creating a typing-combat system. Specifically, zombies approach the player to attack, sometimes alone and sometimes in waves. When this happens, a word or phrase is randomly selected from a dictionary and assigned to each attacking zombie; the player must frantically type the matching phrase to destroy the zombies one by one, thereby making progress in the level. This functionality involves many different features within Unity. We'll need a dictionary database, a random select feature, an input system for typing instructions, and UI elements to provide graphical feedback for the input. So, let's jump in and get started.