I am getting a compile error…have I missed something. Much appreciated. I’m obviously not a coder.
Assets/camera_script_nw.js(4,11): BCE0044: expecting (, found ‘Start’.
var main_Camera : Camera;
var Camera_2 : Camera;
-function Start(){
main_Camera.enabled = true;
Camera_2.enabled = false;
}
-function Update (){
if(Input.GetKeyUp(“1”)){
main_Camera.enabled = true;
Camera_2.enabled = false;
}
if(Input.GetKeyUp(“2”)){
main_Camera.enabled = false;
Camera_2.enabled = true;
}
}