Created
April 10, 2013 19:09
-
-
Save jakevsrobots/5357528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class CameraManager : MonoBehaviour { | |
public Camera cameraOne; | |
public Camera cameraTwo; | |
// etc. | |
public void Start() { | |
// Switch to camera one | |
cameraOne.enabled = true; | |
cameraTwo.enabled = false; | |
// Or switch to camera two | |
cameraOne.enabled = false; | |
cameraTwo.enabled = true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment