コード例 #1
0
ファイル: GameController.cs プロジェクト: ozgurtt/Blockara
    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);
    }