private void createQuestion() { if (difficult) { // ! isPicture = true; currentQuestion = new QuestionPicture (questionList [++index]); }else { if(Mathf.Round(Random.value) == 0) { isPicture = true; hud.switchToPicture(); currentQuestion = new QuestionPicture (questionList [++index]); }else{ isPicture = false; hud.switchToText(); currentTQuestion = new QuestionText(questionList[++index]); } } }
private void createQuestion() { if (difficult) // ! { isPicture = true; currentQuestion = new QuestionPicture(questionList [++index]); } else { if (Mathf.Round(Random.value) == 0) { isPicture = true; hud.switchToPicture(); currentQuestion = new QuestionPicture(questionList [++index]); } else { isPicture = false; hud.switchToText(); currentTQuestion = new QuestionText(questionList[++index]); } } }