title: Camera switch between First and third person. Showing error
body: <p>I am trying to make a camera switch between first person and third person. Here is the code:</p>
  <pre><code>[SerializeField]
  private Camera ThirdPersonCam;
  private KeyCode switchKey;
  
  //Assingables
  public Transform playerCam;
  public Transform orientation;
  
  private void Update()
  {
      MyInput();
      Look();
  
      if (Input.GetKeyDown(switchKey))
      {
          playerCam.enabled = !playerCam.enabled;
          ThirdPersonCam.enabled = !ThirdPersonCam.enabled;
      }
  }
  </code></pre>
  <p>However, in this line <code>playerCam.enabled = !playerCam.enabled;</code>, it shows this error:</p>
  <pre><code>'Transform' does not contain a definition for 'enabled' and no accessible extension method 'enabled' accepting a first argument of type 'Transform' could be found (are you missing a using directive or an assembly reference?
  </code></pre>
  <p>But in the line beneath it, it doesn’t show. I am confused why is it happening and <code>enabled</code> is a definition for the <code>Transform</code>. Can someone help me out to solve it.</p>
  <p>Thanks.</p>