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

Creating player waypoints


The remainder of this chapter focuses on creating the first input type; namely, player movement. The second type is explored in the next chapter. In building movement functionality, we'll bring together many Unity features operating harmoniously - including animation, Mecanim, scripting, and others. We'll start by creating empty objects (empties) in the scene, representing important locations for the camera to stop at on its journey from the beginning of the level to the end. These are locations of attack and ambush; where zombies approach for combat. When a combat sequence is completed (by killing all zombies), the camera is free to move forward at the player's prompting. To create waypoints, create an empty object for each stopping point, then parent all of those to a single object for organization. I have created five stopping points for the first level: A, B, C, D, and E. These empties are primarily for reference and not for scripting purposes; they help us...