Disable MouseLook on Pause Menu

Alright so, I got a Pause menu for my game working fine, only the mouse still moves around the player when I’m selecting buttons. I’m using the default JS Mouse orbit script and the pause menu is in a different scene being loaded in as an additive with the HUD at runtime.

How do I get the MouseOrbit disabled on Pause?

(mostly using C#)

disable it in pause !

YourObject.GetComponent(MouseLook).enabled = false;

and enable it in resume

YourObject.GetComponent(MouseLook).enabled = true;