private bool ExitDemoIfNeeded() { if (!PD.isDemo) { return(false); } bool keyPress = PD.IsKeyDownOrButtonPressed() || PD.ReturnLaunchOrPauseOrNothingIsPressed() > 0; if (keyPress || --demoCountdown <= 0) { if (keyPress) { PD.sounds.SetSoundAndPlay(SoundPaths.S_Menu_Confirm); } PD.MoveOutOfDemo(); return(true); } return(false); }