Пример #1
0
        /*void OnGUI()
         * {
         *  if (!Application.isPlaying) // && this.updateValues)
         *  {
         *      SetRelativeSize();
         *      SetRelativePosition();
         *      this.updateValues = false;
         *  }
         * }*/

        void SetRelativeData()
        {
            if (!useRelativeData)
            {
                return;
            }

            oCamera = Camera.main.GetComponent <OrthographicCameraSetup>();
            SetRelativeSize();
            SetRelativePosition();
        }
Пример #2
0
        /*void OnGUI()
        {
            if (!Application.isPlaying) // && this.updateValues)
            {
                SetRelativeSize();
                SetRelativePosition();
                this.updateValues = false;
            }
        }*/
        void SetRelativeData()
        {
            if (!useRelativeData)
                return;

            oCamera = Camera.main.GetComponent<OrthographicCameraSetup>();
            SetRelativeSize();
            SetRelativePosition();
        }