O'Reilly logo

Unity 4 Game Development HOTSHOT by Jate Wittayabundit

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

Adding new features to the CharacterControl and CameraControl scripts

In this step, we will adapt and add new features to the CharacterControl and CameraControl scripts that we created in Project 4, Add Character Control and Animation to Our Hero/Heroine. We will add the script to control our character's movement by gradually changing the speed from idle to walk and walk to run. Then, we will add the ability to switch between shooting and movement, which will also change the camera's view position.

Engage thrusters

Let's get started! To add new features to the CharacterControl and CameraControl scripts, perform the following steps:

  1. Go to the Chapter5/Scripts/C# (for C# users) or Chapter5/Scripts/Javascript (for Unity JavaScript users) folder in the ...

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