// Start is called before the first frame update void Start() { dataController = FindObjectOfType <DataController>(); quizUpData = dataController.GetQuizUpData(); questionPool = quizUpData.questions; unansweredQuestions = questionPool.ToList <QuizUpQuestions>(); isQuizUpActive = true; questionCount = 0; playerScore = 0; healthCount = 5; timeRemaining = quizUpData.timeLimitInSeconds; UpdateTimeRemainingDisplay(); choiceA.enabled = true; choiceB.enabled = true; choiceC.enabled = true; choiceD.enabled = true; SetCurrentQuestion(); // Play Sound Sample // AudioManager.Instance.PlaySound("GameMusic"); }
void Start() { dataController = FindObjectOfType <DataController>(); trueOrFalseData = dataController.GetTrueOrFalseData(); resistData = dataController.GetResistData(); quizUpData = dataController.GetQuizUpData(); quizUpData = dataController.GetQuizUpData(); pawerData = dataController.GetPawerData(); }