예제 #1
0
    public void Start()
    {
        if (!bloom)
            bloom = Camera.main.gameObject.GetComponent<MobileBloom> ();
        if (!noise)
            noise = Camera.main.gameObject.GetComponent<ColoredNoise> ();
        if (!fog)
            fog = Camera.main.gameObject.GetComponentInChildren<RenderFogPlane> ();

        current = startMoodBox;
        UpdateFromMoodBox ();
    }
예제 #2
0
    public void Start()
    {
        if (!bloom)
        {
            bloom = Camera.main.gameObject.GetComponent <MobileBloom> ();
        }
        if (!noise)
        {
            noise = Camera.main.gameObject.GetComponent <ColoredNoise> ();
        }
        if (!fog)
        {
            fog = Camera.main.gameObject.GetComponentInChildren <RenderFogPlane> ();
        }

        current = startMoodBox;
        UpdateFromMoodBox();
    }
    void Start()
    {
        if (heightFogBeforeTransparentGO != null)
        {
            heightFogBeforeTransparentGO.SetActive(true);
        }

        if (!bloom)
        {
            bloom = GetComponent <MobileBloom> ();
        }
        if (!noise)
        {
            noise = GetComponent <ColoredNoise> ();
        }
        if (!depthOfField)
        {
            depthOfField = GetComponent <HeightDepthOfField> ();
        }
        if (!heightFog)
        {
            heightFog = gameObject.GetComponentInChildren <RenderFogPlane> ();
        }
        if (!shaders)
        {
            shaders = GetComponent <ShaderDatabase> ();
        }
        if (!reflection)
        {
            reflection = GetComponent("ReflectionFx") as MonoBehaviour;
        }

        if (autoChoseQualityOnStart)
        {
            AutoDetectQuality();
        }

        ApplyAndSetQuality(currentQuality);
    }
예제 #4
0
    void Start()
    {
        if (heightFogBeforeTransparentGO != null)
            heightFogBeforeTransparentGO.SetActive(true);

        if (!bloom)
            bloom = GetComponent<MobileBloom> ();
        if (!noise)
            noise = GetComponent<ColoredNoise> ();
        if (!depthOfField)
            depthOfField = GetComponent<HeightDepthOfField> ();
        if (!heightFog)
            heightFog = gameObject.GetComponentInChildren<RenderFogPlane> ();
        if (!shaders)
            shaders = GetComponent<ShaderDatabase> ();
        if (!reflection)
            reflection = GetComponent ("ReflectionFx") as MonoBehaviour;

        if (autoChoseQualityOnStart)
            AutoDetectQuality ();

        ApplyAndSetQuality (currentQuality);
    }