void Start() { mainCam = Camera.main; presetsDropdown.value = QualitySettings.GetQualityLevel(); Refresh(); bloomScript = mainCam.GetComponent <Bloom>(); motionBlurScript = mainCam.GetComponent <MotionBlur>(); ambientOcclusionScript = mainCam.GetComponent <AmbientOcclusion>(); antiAliasingScript = mainCam.GetComponent <AntiAliasing>(); sunRaysScript = mainCam.GetComponent <TOD_Rays>(); cloudShadowsScript = mainCam.GetComponent <TOD_Shadows>(); lensAberrationsScript = mainCam.GetComponent <LensAberrations>(); fullscreenToggle.onValueChanged.AddListener(delegate { OnFullscreenToggle(); }); }
void Start() { animator = GetComponent <Animator>(); rb = GetComponent <Rigidbody2D>(); animator.SetFloat("lookX", 0); animator.SetFloat("lookY", -1); travelDirection = Vector2.down; prevPosition = transform.position; blur = camera.GetComponent <MotionBlur>(); bloom = camera.GetComponent <Bloom>(); lens = camera.GetComponent <LensAberrations>(); color = camera.GetComponent <TonemappingColorGrading>(); trippyText.gameObject.SetActive(false); deathText.gameObject.SetActive(false); }