In addition to building a player camera that moves from point to point, let's also establish a death animation that will feature in the Mecanim graph. With the death animation, the camera simply falls to the floor and rolls over, and this can interrupt gameplay at any time. The death animation will, of course, occur when the player is killed by a danger in the scene, such as a zombie attack. To get started on creating this, select the navigator object, and then add a new animation from the Animation window by clicking on Create New Clip...; create a new animation clip called anim_Die:
Creating player death
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.