Пример #1
0
        public void ResetCamera(Camera camera)
        {
            this.subviewCamera = camera;
            SubviewManager.SetSubviewCamera(this.subviewType, this.subviewCamera);
            SubviewManager.SetSubviewPosition(this.subviewType, this.subviewPositionType, this.offsetX, this.offsetY, this.sizeX, this.sizeY);

            this.preSubviewPositionType = this.subviewPositionType;
        }
Пример #2
0
        // Update is called once per frame
        void Update()
        {
            if (this.subviewPositionType != this.preSubviewPositionType)
            {
                SubviewManager.SetSubviewPosition(this.subviewType, this.subviewPositionType, this.offsetX, this.offsetY, this.sizeX, this.sizeY);

                this.preSubviewPositionType = this.subviewPositionType;
            }
        }
Пример #3
0
        // Use this for initialization
        void Start()
        {
#if ENABLE_VRIK
            this.subviewCamera = subviewCameraForFinalIK;
#else
            this.subviewCamera = subviewCameraForSimpleIK;
#endif
            SubviewManager.SetSubviewCamera(this.subviewType, this.subviewCamera);

            SubviewManager.SetSubviewPosition(this.subviewType, this.subviewPositionType, this.offsetX, this.offsetY, this.sizeX, this.sizeY);

            this.preSubviewPositionType = this.subviewPositionType;
        }