Esempio n. 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();
        }
Esempio n. 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();
        }