Ejemplo n.º 1
0
        //***********/
        //* methods */
        //***********/

        // void Awake()
        // {
        // }

        void OnEnable()
        {
#if UNITY_EDITOR
            if (BuildPipeline.isBuildingPlayer)
            {
                return;
            }
#endif

            instance = this;
            LoadConfig();
            SetupScreen();
            ApplyPreset();

            foreach (var capture in captures)
            {
                if (!capture)
                {
                    continue;
                }
                capture.SetupCam(tiling.aspect, config.verticalAngle);
            }

            if (onQuiltSetup.GetPersistentEventCount() > 0)
            {
                onQuiltSetup.Invoke();
            }
        }
Ejemplo n.º 2
0
        //***********/
        //* methods */
        //***********/

        // void Awake()
        // {
        // }

        void OnEnable()
        {
            instance = this;
            LoadConfig();
            SetupScreen();
            ApplyPreset();

            foreach (var capture in captures)
            {
                if (!capture) continue;
                capture.SetupCam(tiling.aspect, config.verticalAngle);
            }

            if (onQuiltSetup.GetPersistentEventCount() > 0)
                onQuiltSetup.Invoke();
        }
Ejemplo n.º 3
0
 void OnEnable()
 {
     quilt = GetComponent <Quilt>();
 }