private TrinusCamera findCamera()
        {
            TrinusCamera foundCam = null;
            GameObject   cam      = GameObject.Find("TrinusCamera");

            if (cam != null && cam.GetComponent <TrinusCamera> () != null)
            {
                foundCam = cam.GetComponent <TrinusCamera> ();
            }
            else
            {
                //search for the TrinusCamera script attached to a differently named object
                TrinusCamera[] cams = GameObject.FindObjectsOfType <TrinusCamera> ();
                if (cams.Length > 0)
                {
                    foundCam = cams [0];
                }
                else
                {
                    Debug.LogWarning("No TrinusCamera found for TrinusManager!");
                }
            }
            if (foundCam != null)
            {
                decideResolution(PlayerPrefs.GetInt("resolution", 720), getMonoscopic());
                //yawOffset = trinusCamera.defaultViewAngle;
                switchCamera(foundCam);
                foundCam.setCameraEnabledDelegate(switchCamera);
            }
            return(foundCam);
        }
        public void OnEnable()
        {
            TrinusCamera cam = transform.parent.GetComponent <TrinusCamera> ();

            if (cam != null)
            {
                cam.enabledCamera();
            }
        }
 public void switchCamera(TrinusCamera newCam, bool toggleActive)
 {
     if (toggleActive)
     {
         newCam.gameObject.SetActive(true);
         if (trinusCamera != null)
         {
             trinusCamera.gameObject.SetActive(false);
         }
     }
     trinusCamera = newCam;
     resetTracking();
 }
 public void switchCamera(TrinusCamera newCam)
 {
     switchCamera(newCam, true);
 }