- Home /
Question by
jaxmus · Jan 06, 2014 at 02:22 AM ·
errormouselookunexpectedsymbol
When I try to disable mouse look for first person controller it throws an error
I'm trying to disable mouselook whenever the functions disableMous() is called. But it is throwing an error unexpected symbol 'player' and unexpected symbol 'can'. Any idea how to fix this? Thanks in advance here's the code I'm using.
void disableMouse(){
GameObject player = GameObject.FindWithTag("Player")
player.GetComponent<MouseLook>().enabled = false;
GameObject can = GameObject.FindWithTag("MainCamera")
can.GetComponent<MouseLook>().enabled = false;
}
Comment
Your answer
Follow this Question
Related Questions
Quill18's Tutorial Scripts: Unexpected Symbols 1 Answer
Another error 0 Answers
Unexpexted symbol 'private' (125,11) . How to fix? 0 Answers
Error unexpected symbol 'internal' What is wrong with this? 0 Answers
A node in a childnode? 1 Answer