Disabling a script in runtime

Hello,

Is there any way to disable a script (MouseLook in this case) in another script (my GUIhandler)? I have currently solved this by making a bool in my GUIhandler. The MouseLook script then checks if this bool is true, to use MouseLook. I would like to be able to do this by just disabling the MouseLook script, in my GUIhandler.

Thanks!

If the script is a Mono Behaviour, then you can do this:

http://unity3d.com/support/documentation/ScriptReference/Behaviour-enabled.html

http://forum.unity3d.com/threads/26349-script-enable-disable-problem