// Use this for initialization
        void Start()
        {
            SubviewManager.SetSubviewCamera(this.subviewType, this.subviewCamera);

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

            this.preSubviewPositionType = this.subviewPositionType;
        }
        // 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 (subview1Camera != null)
     {
         SubviewManager.SetSubviewCamera(SIGVerse.Common.SubviewType.Subview1, this.subview1Camera);
     }
     if (subview2Camera != null)
     {
         SubviewManager.SetSubviewCamera(SIGVerse.Common.SubviewType.Subview2, this.subview2Camera);
     }
     if (subview3Camera != null)
     {
         SubviewManager.SetSubviewCamera(SIGVerse.Common.SubviewType.Subview3, this.subview3Camera);
     }
     if (subview4Camera != null)
     {
         SubviewManager.SetSubviewCamera(SIGVerse.Common.SubviewType.Subview4, this.subview4Camera);
     }
 }