C# Disabling Camera moving while in Pause Menu

I have searched through other questions people have asked but it hasn’t helped. Basically when the player pauses the game I don’t want the camera in game moving around when the player is selecting options in the pause menu.

For my FPS Controller I am using the standard assets. Below is my Pause script: ( I have it on an empty object called ButtonManager)

public Transform canvas;
public Transform Player;

//Pause menu
void Update()
{
    if (Input.GetKeyDown(KeyCode.Escape))
    {
        Pause();
    }
}
public void Pause()
{
    if (canvas.gameObject.activeInHierarchy == false)
    {
        //so player can have mouse
        Cursor.visible = true;
       Cursor.lockState = CursorLockMode.None;

        canvas.gameObject.SetActive(true);
        Time.timeScale = 0;
        Player.GetComponent<CharacterController>().enabled = false;
        AudioListener.volume = 0;
     
    }
    else
    {
        canvas.gameObject.SetActive(false);
        Time.timeScale = 1;
        Player.GetComponent<CharacterController>().enabled = true;
        AudioListener.volume = 1;
   
    }

    
}
//End Pause Menu

//function for New Game button that loads next scene
//make sure to have next scene in build settings
public void NewGameBtn(string newGameLevel)
{
    SceneManager.LoadScene(newGameLevel);
}

//function to quit the game once the user presses exit game button
public void ExitGameBtn()
{

    Application.Quit();
}

}

I have tried adding GetComponent().enabled = false; in the if statement and then make it true in else statement but it throws an error for enabled. Says something along the lines of “mouselook” doesnt have definition of enabled.

Thanks in advance!

I would actually recommend using Time.deltaTime as a multiplier in your Camera moving component.
1st, it’ll make it frame rate independent, 2nd, it’ll make it stop moving when you set the timescale to 0.