Hello,
I’m having this really big issue with my camera script. I’m trying to say if the key “R” is pressed, the camera will switch to another camera. However the editor keeps telling me that a semicolon is needed and I can’t seem to figure out why this is the problem. I have ";"s everywhere in my script, but I just don’t understand. Any help is appreciated.
Camera Camera1;
Camera Player;
function Update () {
if (Input.GetKeyDown(R.c));
{
Camera1.enabled=true;
Player.enabled=false;
}
else{
Camera1.enabled=false;
Player.enabled=true;
}
}