public static void SetFirstActive(Query query) { try { int number = query.Questions[0].Number; QuestionData.SetActive(number, query.Code); } catch (IndexOutOfRangeException ex) { } }
public static void SetNextActive(Question currentQuestion, int number) { QuestionData.SetActive(number, currentQuestion.Code); }