I want my player to be able to switch between a first person camera and a third person camera. This is the code I have but when I switch I can’t move my player any more.
var camera1 : Camera;
var camera2 : Camera;
function Start () {
camera1.camera.active = true;
camera2.camera.active = false;
}
function Update () {
if(Input.GetKeyDown("c")) {
camera1.camera.active = false;
camera2.camera.active = true;
}
if(Input.GetKeyDown("v")) {
camera2.camera.active = false;
camera1.camera.active = true;
}
}