I get this little error. " Unexpected symbol `{ '" but i can’t fix the problem. Could anyone help?
The error is on line 20
using UnityEngine;
using System.Collections;
public class CameraChange : MonoBehaviour {
public Camera cam1;
public Camera cam2;
// Use this for initialization
void Start () {
cam1.enabled = true;
cam2.enabled = false;
}
// Update is called once per frame
void Update () {
if(Input.GetKey(KeyCode.N) {
cam1.enabled = true;
cam2.enabled = true;
}
}
}