c # – How can I switch between two cameras depending on the scene cut?

The main goal is to switch between the camera of the player and the main camera.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

Public class CutsceneManager: MonoBehaviour
{
public player GameObject;
public GameObject npc;
public GameObject doorEnteredID;
LockManager public public doors;
public channel distance;
state of public chain;
public camera playerCamera;
public camera main camera;

private bool playerEntered = false;
floating private distOfID;
private AudioListener playerAudioListener;
private AudioListener mainCameraAudioListener;

// Start is called before the first update of the frame
empty Start ()
{
playerAudioListener = playerCamera.GetComponent();
mainCameraAudioListener = mainCamera.GetComponent();
}

// The update is called once per image
void Update ()
{
float dist = Vector3.Distance (npc.transform.position, player.transform.position);

if (dist <12)
{
distance = dist.ToString ();

if (doorlockmanager.Doors[7].doorLockState == false)
{
// shooting scene
state = "Shooting scene";
playerCamera.gameObject.SetActive (false);
playerAudioListener.enabled = false;
}
other
{
// magic scene
state = "Magic Scene";
playerCamera.gameObject.SetActive (false);
playerAudioListener.enabled = false;
mainCamera.gameObject.SetActive (false);
mainCameraAudioListener.enabled = false;
}
}
other
{
if (doorlockmanager.Doors[7].doorLockState == true)
{
// magic scene
state = "Magic Scene";
playerCamera.gameObject.SetActive (false);
playerAudioListener.enabled = false;
mainCamera.gameObject.SetActive (false);
mainCameraAudioListener.enabled = false;
}
}

if (doorEnteredID! = null)
{
distOfID = Vector3.Distance (player.transform.position, doorEnteredID.transform.position);
}

if (distOfID <1)
{
playerEntered = true;
doorlockmanager.Doors[7].doorLockState = true;
Destroy (doorEnteredID);
}
}
}

I want to switch between the two cameras and audiolistresses.
But it is disable / enable the GameObject of the camera / s and not the camera itself.

For example, a screenshot of the player's camera:
I want it to disable / enable the camera, but instead it disables the top FPSCamera (the camera's gameobject).