public void ExposureChanged(Slider slider)
    {
        TonemappingColorGrading component = this.mainCamera.gameObject.GetComponent <TonemappingColorGrading>();

        TonemappingColorGrading.TonemappingSettings tonemapping = component.tonemapping;
        tonemapping.exposure  = slider.value;
        component.tonemapping = tonemapping;
    }
    public void TogglePostFX()
    {
        TonemappingColorGrading component = this.mainCamera.gameObject.GetComponent <TonemappingColorGrading>();

        this.togglepostFXButtonOn.SetActive(!component.enabled);
        this.togglepostFXButtonOff.SetActive(component.enabled);
        this.exposureSlider.interactable = !component.enabled;
        component.enabled = !component.enabled;
        Bloom component2 = this.mainCamera.gameObject.GetComponent <Bloom>();

        component2.enabled = component.enabled;
    }
    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);
    }