void Update() { if (playplot) { if (lf.frequncy <= 5f) { if (Time.time > nextup) { lf.frequncy = lf.frequncy + 2; nextup = Time.time + timer; } return; } else if (timer > 0) { lf.enabled = false; lt.intensity = 2f; timer -= Time.deltaTime * 2; return; } else { fade.Fade(); } } }