示例#1
0
    // 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();
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        anchorCrane = null;
        anchorCam   = null;

        CheckCamera();
        CreateAnchors();

        prevCameraType = cameraType.ToString();

        cameraDirector = GameObject.FindGameObjectWithTag("Director").GetComponent <CameraDirector>();
        cameraDirector.RegisterCamera(gameObject);
    }