//Initialize the PiP camera here void Start() { //Grab the viewerScript once since it should not change viewerScript = currentViewer.GetComponent<VectorFollow>(); //Grab the viewer camera so we don't have to do it again viewerCamera = currentViewer.GetComponent<Camera>(); //Make sure the camera is displaying to the screen viewerCamera.enabled = true; //Update it with the default selection //currentViewer.SendMessage("SetTarget", planetList.selection); Debug.Log(viewerCamera); }
private float lastPipSwitch; //Use to keep track of when the user last did something //Initialize the PiP camera here void Start() { //Grab the viewerScript once since it should not change viewerScript = currentViewer.GetComponent <VectorFollow>(); //Grab the viewer camera so we don't have to do it again viewerCamera = currentViewer.GetComponent <Camera>(); //Make sure the camera is displaying to the screen viewerCamera.enabled = true; //Update it with the default selection //currentViewer.SendMessage("SetTarget", planetList.selection); Debug.Log(viewerCamera); }