Chapter 3. Interacting with the Environment
In this chapter we will explore several different kinds of interaction within Unity.
When we focus on the player and environment, interaction is based on a visual response to the player's input, and in a game, this usually takes the form of animation.
In this case, our game is played from a first-person perspective—we will not see the full character on screen, so what the player experiences, needs to concisely convey the state of the game.
Some first-person games display a weapon or just a crosshair. Our game will involve more than just shooting, so we will see the character's hands and arms—this will allow us to demonstrate different kinds of animation within Unity.
Mecanim will allow us to trigger animations according to player input and other conditions—try to think beyond the simple playing of an animation sequence when a button is pushed—Mecanim is capable of more than this and can bring about a...