This version of Unity is unsupported.
Removed

Component.camera

Obsolete Property camera has been deprecated. Use GetComponent<Camera>() instead. public Component camera;

Description

The Camera attached to this GameObject. (Null if there is none attached).

using UnityEngine;

public class Example : MonoBehaviour { void Start() { GetComponent<Camera>().fieldOfView = 40; } }