// Update is called once per frame void Update() { // Update time timeText.text = "Time left: " + minigame.GetRemainingTime().ToString("f1"); // Update score scoreText.text = "Score: " + minigame.GetCurrentScore().ToString(); if (minigame.GetQuestion() == null) { questionText.text = ""; } else if (questionText.text != minigame.GetQuestion().GetQuestion()) { UpdateQuestion(); } }
public void GetNewQuestion() { minigame.CreateQuestion(aps.Length); currentQuestion = minigame.GetQuestion(); //currentQuestion = GameController.control.GetQuestion(aps.Length); // Update every answer point foreach (AnswerPointTrigger ap in aps) { ap.SetAnswer(currentQuestion.GetAlternative()); } }