Example #1
0
    void Start()
    {
#if !UNITY_EDITOR
        Cursor.visible = false;
#endif

        // Filters attached on camera
        filterArray = cameraEffect.GetComponents <Filter>();
        for (int i = 0; i < filterArray.Length; ++i)
        {
            Filter filter = filterArray[i];
            if (filter.enabled)
            {
                currentFilter     = i;
                currentFilterType = filter.GetType();
                break;
            }
        }

        kaleido          = GameObject.FindObjectOfType <Kaleido>();
        kaleido3DManager = GameObject.FindObjectOfType <Kaleido3DManager>();
        wireframe        = GameObject.FindObjectOfType <Wireframe>();
        planet           = GameObject.FindObjectOfType <Planet>();
        splashes         = GameObject.FindObjectOfType <Splashes>();
        fractal          = GameObject.FindObjectOfType <Fractal>();
        warband          = GameObject.FindObjectOfType <WarbandManager>();
        glitchyCam       = GameObject.FindObjectOfType <GlitchyCam>();

        kaleido3DManager.transform.parent.gameObject.SetActive(false);
        planet.transform.parent.gameObject.SetActive(false);
        wireframe.transform.parent.gameObject.SetActive(false);
        // warband.transform.parent.gameObject.SetActive(false);
    }
Example #2
0
    void Start()
    {
        #if !UNITY_EDITOR
        Cursor.visible = false;
        #endif

        // Filters attached on camera
        filterArray = cameraEffect.GetComponents<Filter>();
        for (int i = 0; i < filterArray.Length; ++i) {
            Filter filter = filterArray[i];
            if (filter.enabled) {
                currentFilter = i;
                currentFilterType = filter.GetType();
                break;
            }
        }

        kaleido = GameObject.FindObjectOfType<Kaleido>();
        kaleido3DManager = GameObject.FindObjectOfType<Kaleido3DManager>();
        wireframe = GameObject.FindObjectOfType<Wireframe>();
        planet = GameObject.FindObjectOfType<Planet>();
        splashes = GameObject.FindObjectOfType<Splashes>();
        fractal = GameObject.FindObjectOfType<Fractal>();
        warband = GameObject.FindObjectOfType<WarbandManager>();
        glitchyCam = GameObject.FindObjectOfType<GlitchyCam>();

        kaleido3DManager.transform.parent.gameObject.SetActive(false);
        planet.transform.parent.gameObject.SetActive(false);
        wireframe.transform.parent.gameObject.SetActive(false);
        // warband.transform.parent.gameObject.SetActive(false);
    }