示例#1
0
    /// <summary>
    /// Handles the logic when the lose animation finishes
    /// </summary>
    private void _on_Lose_animation_finished()
    {
        s = 1000;
        lose.Stop();
        losePopup.Show();
        HideNextButton();
        DefaultSound.disableSound();
        AudioStream sfx = ResourceLoader.Load("res://Assets/SoundEffects/Jingle_Lose_00.wav") as AudioStream;

        audioStreamPlayer.Stream  = sfx;
        audioStreamPlayer.Playing = true;
    }
示例#2
0
    /// <summary>
    /// Display next Question
    /// </summary>
    public void DisplayNextQuestion()
    {
        Control ctr = GetNode <Control>("Buttons");

        if (questionIndex < questionList.Count - 1)
        {
            questionIndex++;
            DisplayQuestion();
            SetQuestionNum();
        }
        else
        {
            //EmitSignal("NoMoreQuestions")
            timerLabel.Visible = false;
            HideBtns();
            monsterSprite.Play("Die");
            win.Play("Win");
            DefaultSound.disableSound();
            AudioStream sfx = ResourceLoader.Load("res://Assets/SoundEffects/Jingle_Win_00.wav") as AudioStream;
            audioStreamPlayer.Stream  = sfx;
            audioStreamPlayer.Playing = true;
        }
    }