Game Development Reference
In-Depth Information
If you run the project now, you should see our hero on the screen, and using the left and
right arrows on the keyboard, we will move the player to the left or right.
Note
An alternative approach to writing your own controller code is to make use of the built-in
Character controller components of Unity. These components help you reduce
the amount of code you need to control a player's movements and also add other recom-
mended components such as physics.
You should also check out Unity's enhanced Sample Assets Beta , which introduces a new
true multiplatform singular control system complete with touch controls. Check out ht-
tp://blogs.unity3d.com/2014/01/17/new-sample-assets-beta/ for more details.
Search WWH ::




Custom Search