I have a MouseLook script and an Attack scrip. I want to disable the MouseLook during the attacks. I looked in the forum but nothing works
function Update()
{
if(Input.GetMouseButton(0)){
GetComponent(MouseLook).enable = false;
Slice();
GetComponent(MouseLook).enable = true;
}
}
All I get is: BCE0019: ‘enable’ is not a member of ‘MouseLook’.
Thanks for the help.