Is there a script to switch between cameras? I have a scene with a top camera and a main camera. I am using a GUI activate the switch from main camera to the top camera.

Thank you very much.

 var camer_main : Camera;//assign your main camera here
 var camer_top : Camera;//assign your top camera here
 var camera3 : Camera;//assign third camera

 function Start()
     {
   camer_main.enabled  = true;
   camer_top.enabled = false;
   camera3.enabled = false;
   
      }

    function OnGUI ()
      {

  if (GUI.Button (Rect (130,40,80,20), "BUTTON"))
            {
           camer_main.enabled  = false;
           camer_top.enabled = true;
           camera3.enabled = false;
             }

   if (GUI.Button (Rect (180,40,80,20), "BUTTON1"))
            {
           camer_main.enabled  = false;
           camer_top.enabled = false;
           camera3.enabled = true;
             }

  }//java script

   public Camera camer_main;//assign your main camera here
   public Camera camer_top;//assign your top camera here

 void Start()
     {
  camer_main.enabled  = true;
  camer_top.enabled = false;
     }

  void OnGUI ()
     {

  if (GUI.Button ( new Rect(130,40,80,20), "BUTTON"))
            {
           camer_main.enabled  = false;
           camer_top.enabled = true;
           
             }

  }// c#