Reply To: Chpt 2 – when I run the Hero doesn\\\'t move/turn

Home Forums Books Mastering Unity 2D Game Development Chpt 2 – when I run the Hero doesn\\\'t move/turn Reply To: Chpt 2 – when I run the Hero doesn\\\'t move/turn

#10043

lol, you found one of my last remaining errata in the book which the proofreaders messed up on me and I missed it.

Basically the problem is in the Awake function, which the text tells you to discover the animator from the scene, however the line is missing :S.

However if you read further down in the “Extra Credit” section, the awake function is detailed in full. (basically they took the wrong line out of the previous example)

The full Awake function should look as follows:

 

Hope this helps.

Simon (Darkside) Jackson
@SimonDarksideJ