public void getQuestions() { newQuestions = deserializer.loadJson(); for (int i = 0; i < newQuestions.questions.Count; i++) { questions[i] = newQuestions.questions[i].getQuestion(); // Debug.Log(questions[i]); } }
void Start() { Answers = deserializer.loadJson(); get_rightAnswers(); getAnswers(); button = GetComponent <Button>(); button.GetComponentInChildren <Text>().text = answers[0]; }
private void LoadNextQuestion() { CurrentQuestion = QuestionArray[_currentQuestionIndex]; if (_currentQuestionIndex == QuestionArray.Count() - 1) { IsLastQuestion = true; } _currentQuestionIndex++; CurrentQuestionNumber = _currentQuestionIndex; }