public void UseJokerSwiitch()
 {
     GetComponent <AudioSource>().clip = soundJokerSwiitch;
     GetComponent <AudioSource>().Play();
     uiController.JokerSwiitchUI();
     currentQuestion = questionCollection.GetUnaskedQuestion(uiController.categoryText.text);
     uiController.SetupUIForQuestion(uiController.categoryText, currentQuestion);
 }
    public void PresentFinalQuestion(Text category)
    {
        _currentCategory   = category;
        questionCollection = gameObject.GetComponent <QuestionCollection>();

        currentQuestion = questionCollection.GetUnaskedQuestion(category.text);

        _uiFinale.SetupUIForQuestion(category, currentQuestion);
    }
    public void PresentQuestion(Text category)
    {
        if (category.text != players[currentPlayer].specialCategory && listSpecialCategories.Contains(category.text))
        {
            pointsMultiplier = 2;
        }
        else
        {
            pointsMultiplier = 1;
        }

        uiController.UpdatePointsToScore(pointsMultiplier);

        questionCollection = gameObject.GetComponent <QuestionCollection>();

        if (category.text == "Surprise")
        {
            category.text = PickASpecialCategory();
        }

        currentQuestion = questionCollection.GetUnaskedQuestion(category.text);

        uiController.SetupUIForQuestion(category, currentQuestion);
    }
예제 #4
0
 private void PresentAllQuestions1()
 {
     currentQuestion = questionCollection.GetUnaskedQuestion(helpArray);
     panelController.SetupUIForQuestion(currentQuestion);
 }
예제 #5
0
 void PresentQuestion()
 {
     currentQuestion = qC.GetUnaskedQuestion();
     uiController.SetupUIForQuestion(currentQuestion);
 }
예제 #6
0
 private void PresentQuestion()
 {
     currentQuestion = questionCollection.GetUnaskedQuestion();
     uiController.SetupUIForQuestion(currentQuestion);
 }
예제 #7
0
 private void CurrentQuestion()
 {
     currentQuestion = questionCollection.GetUnaskedQuestion();
     uiHelper.SetupUIForQuestion(currentQuestion);
 }