void Start() { dataController = FindObjectOfType <DataController>(); trueOrFalseData = dataController.GetTrueOrFalseData(); resistData = dataController.GetResistData(); quizUpData = dataController.GetQuizUpData(); quizUpData = dataController.GetQuizUpData(); pawerData = dataController.GetPawerData(); }
// Start is called before the first frame update void Start() { isResistActive = true; playerPassesLeft = 5; currentQuestionIsAnswered = true; dataController = FindObjectOfType <DataController>(); resistData = dataController.GetResistData(); questionPool = resistData.questions; timeRemaining = resistData.timeLimitInSeconds; UpdateTimeRemainingDisplay(); previousRandomQuestionIndex = 0; ResetButtonContents(); unansweredQuestions = questionPool.ToList <ResistQuestions>(); SetCurrentQuestion(); }