I am trying to make a VERY SIMPLE zoom in scope with this code. But it says an error tho:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ZoomScope : MonoBehaviour
{
// Update is called once per frame
void Update()
{
if(Input.GetMouseButtonDown(1) {
GetComponent<Camera>()(targetFieldOfView = 70);
}
}
}