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 = 90; private const int scoreIncreaseValue = 10; private const int scoreDecreaseValue = 15; private int scoreValue = 0; private int questionIdx = 0; private List selectedAnswers; List questions = new List() { new Question("Q1", new int[] {1, 3}), new Question("Q2", new int[] {2}), }; // Use this for initialization void Start () { selectedAnswers = new List(); UpdateScene(); UpdateCounter(); UpdateScore(); btnNextQuestion.GetComponent