You're trying to use the javascript syntax in c#
What you need to do is use the generic version:
GetComponent().enabled = false
The alternative is to use the type version (which you shouldn't really do, use the above):
((MouseLook)GetComponent(typeof(MouseLook))).enabled = false;
↧