private void OnTriggerEnter2D(Collider2D collision) { time.Stop(); tutorial.SetActive(true); LensDistortion lens; profile = postProcProf.sharedProfile; profile.TryGetSettings <LensDistortion>(out lens); lens.intensity.Override(50f); }
IEnumerator pauseDelay() { yield return(new WaitForSeconds(1f)); time.Stop(); attack.SetActive(true); LensDistortion lens; profile = postProcProf.sharedProfile; profile.TryGetSettings <LensDistortion>(out lens); lens.intensity.Override(50f); secondStage = true; }
void Start() { time.Stop(); panel.SetActive(true); StartCoroutine(resTime()); LensDistortion lens; profile = postProcProf.sharedProfile; profile.TryGetSettings <LensDistortion>(out lens); lens.intensity.Override(50f); //var bloom = postProcProf.; //bloom.bloom.intensity = Mathf.Lerp(data[i].Strength, data[i + 1].Strength, data[i].TimeToReachNext); //postProcProf.bloom.settings = bloom; }