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