Need help with script and trigger, switching cameras

Help, please, with script, when Player passes through the trigger, the camera “1” switches to “2”

http://unifycommunity.com/wiki/index.php?title=SwitchCamera

Hi my friend , forgive me for my language i don’t know very good english
i think my script is better because you want to set up the trigger with camera no when press a button change the camera

var Camera1 : Camera;

var Camera2 : Camera;

function OnTriggerEnter(){

Camera1.enabled = false;

Camera2.enabled = true;

}

function OnTriggerExit(){

Camera1.enabled = true;

Camera2.enabled = false;

}

set up the 2 camera’s and when you enter the trigger automatic the camera will change after your exit from the trigger the camera go back to normal or the other camera you have set up!