public void SetQuizQuestions(ClassPergunta tempQuestions) { quizQuestions = new Pergunta[tempQuestions.GetLenght()]; for (int i = 0; i < tempQuestions.GetLenght(); i++) { quizQuestions[i] = tempQuestions.GetQuestion(i); } }
void Start() { // Cria o conversor ConverterFromJson <ClassPergunta> converter = new ConverterFromJson <ClassPergunta>(); // Converte o arquivo temp = converter.Convert(file); // Guarda no objeto perguntas.SetQuizQuestions(temp); }