Exemple #1
0
    public void Start()
    {
        devices = GetComponent <DevicesDetector>();

        qualities = QualitySettings.names;

        Settings = Options.Graphics;

        ChangeResolution();
        //InitializeResolutions();

        if (volume != null)
        {
            LiftGammaGain tmp;
            if (volume.profile.TryGet <LiftGammaGain>(out tmp))
            {
                LGG = tmp;
            }
        }

        LoadOptions();

        SetGamma();

        SetYSensitibityPC();
        SetXSensitibityPC(); //comprobar para la primera vez si los sets van bien tras el load

        SetXSensitibityController();
        SetYSensitibityController();

        SetMusicVolume(musicSlider.value);
        SetEffectsVolume(effectsSlider.value);

        //SetToggleInvertYPC();
        //SetToggleInvertXPC();
        //SetToggleInvertYController();
        //SetToggleInvertXController();

        ChangeSlideTextValue();
    }
Exemple #2
0
    void Awake()
    {
        Volume V = GetComponent <Volume>();

        if (V.profile.TryGet <DepthOfField>(out DepthOfField tmpBlur))
        {
            Blur = tmpBlur;
        }

        if (V.profile.TryGet <Vignette>(out Vignette tmpBlack))
        {
            Blackout = tmpBlack;
        }

        if (V.profile.TryGet <LensDistortion>(out LensDistortion tmpDistort))
        {
            Distort = tmpDistort;
        }

        if (V.profile.TryGet <LiftGammaGain>(out LiftGammaGain tmpDark))
        {
            Darkness = tmpDark;
        }
    }
 private void Awake()
 {
     LGB             = _volume.GetComponent <LiftGammaGain>();
     LGB.gamma.value = new Vector4(1, 1, 1, 0);
 }
 private void Awake()
 {
     _lgg = _targetVolume.profile.Add <LiftGammaGain>();
 }