using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using UnityEngine; using UnityEngine.UI; public class QuizController : MonoBehaviour { public GameObject[] answers; public Text counterText; public Text scoreText; public Text questionText; public Button btnNextQuestion; private float counterValue; private const int numberOfAnswers = 4; private const int scoreCorrectAnswer = 10; private const int scoreIncorrectAnswer = -15; private const int scoreTimedOut = 0; private const int counterInitialValue = 10; private const int displayAnswersCounterValue = 3; private int scoreValue = 0; private int questionIdx = 0; private List selectedAnswers; List questions = new List() { new Question("1. Neki od ovih prozora imaju 2-3 puta manje toplotnih gubitaka za razliku od drugih, koji su to?", new int[] {1, 3}), new Question("2. Na jedan od načina možete uštedjeti i do 10 litara vode po osobi dnevno, uz koji predmet?", new int[] {2}), }; // Use this for initialization void Start () { selectedAnswers = new List(); counterValue = counterInitialValue; UpdateScene(); UpdateCounter(); UpdateScore(); btnNextQuestion.GetComponent