How to disable mouse look in Unity 5?

Player.transform.GetComponent<MouseLook>().enabled = false;
Player.GetComponent<Camera>().GetComponent<MouseLook>().enabled = false;
does not work anymore. So how do I now disable MouseLook without disabling the whole CharacterController (gravity is disabled if CharacterController is)?

I have the same problem.

It can depend on your case but I gave an answer in this thread :

You can also edit MouseLook.cs script and add field
public bool enabled { get; set; }
In Init method change state to TRUE and check it state in LookRotation method.
When you change state to FALSE from outside (for example, when you call menu) MouseLook will not be executed.

P.S. Sorry for my english