Why won't my mouselook code work?
I'm kinda new to unity, so I've been using the "Unity in action" book by Joseph Hocking and the provided mouselook code isn't working. If anyone could see if there's a bug in there I just can't see, or if there's something wrong with my copy of unity even (as unlikely as that seems) please tell me so i can keep going with my project.
Here is the error code as well:

unity-mouselook.jpg
(96.8 kB)
error.jpg
(22.1 kB)
Comment
Answer by brunocoimbra · Feb 15, 2016 at 03:53 PM
Please, next time format your code with the 101010 button, it makes easier to us to simple copy-paste the code on an empty project to see what's wrong.
About the problem, it's in line 18, where is missing the ";" at the end of the line.
Your answer