I am trying to make a VR game for google cardboard, and i am trying to set the FOV of a camera after 2 seconds, however i get the error:
"NullReferenceException: Object reference not set to an instance of an object CameraFOV.Start"
using UnityEngine;
using System.Collections;
public class CameraFOV : MonoBehaviour
{
// Use this for initialization
void Start()
{
System.Threading.Thread.Sleep(2000);
Camera.current.fieldOfView = 60;
}
// Update is called once per frame
void Update()
{
}
}