void Update() { if (fadedIn && Input.anyKeyDown) { if (fadeToWhite) { sf.FadeToWhite(fadeOutDuration, FadeOutComplete); } else { sf.FadeToBlack(fadeOutDuration, FadeOutComplete); } } }