void Update() { if ((Input.GetAxis("Horizontal") != 0) || (Input.GetAxis("Vertical") != 0)) { time.Resume(); panel.SetActive(false); LensDistortion lens; profile = postProcProf.sharedProfile; profile.TryGetSettings <LensDistortion>(out lens); lens.intensity.Override(22f); Destroy(gameObject); } }
public void Update() { if (Input.GetMouseButtonDown(1) && tutorial.activeSelf) { time.Resume(); tutorial.SetActive(false); LensDistortion lens; profile = postProcProf.sharedProfile; profile.TryGetSettings <LensDistortion>(out lens); lens.intensity.Override(22f); Destroy(gameObject); } }
void Update() { if (secondStage) { if (Input.GetMouseButtonDown(0) || Input.GetMouseButtonDown(1)) { time.Resume(); LensDistortion lens; profile = postProcProf.sharedProfile; profile.TryGetSettings <LensDistortion>(out lens); lens.intensity.Override(22f); } } }