// Update is called once per frame void Update() { if (prevCameraType != cameraType.ToString()) { Debug.Log(prevCameraType + " ---- " + cameraType.ToString()); // SetDirectorControls(); cameraDirector.RegisterCamera(gameObject); prevCameraType = cameraType.ToString(); } //UpdateCameraProperties(); }
// Use this for initialization void Start() { anchorCrane = null; anchorCam = null; CheckCamera(); CreateAnchors(); prevCameraType = cameraType.ToString(); cameraDirector = GameObject.FindGameObjectWithTag("Director").GetComponent <CameraDirector>(); cameraDirector.RegisterCamera(gameObject); }