O'Reilly logo

Mastering Unity 5.x by Alan Thorn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Enemies and Artificial Intelligence

This chapter brings the Dead Keys project to an important developmental stage, adding a certain roundness and completeness by adding enemy characters (zombies). In creating an enemy, we'll bring together many features that we've already created, from health and damage, to combat mechanics and UI elements. Specifically, we'll build a zombie enemy that can wander the level in search of the player, then chase the player when found, and finally attack them when close enough. In addition, the player will be able to engage and attack the zombie in word-combat. To create this functionality, we'll work with Prefabs, Navigation Meshes, Artificial Intelligence, and Finite State Machines. So let's get started. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required