Player Controls - Typing and Health

The last 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 ...

Get Mastering Unity 2017 Game Development with C# - Second 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.