void Awake() { DontDestroyOnLoad(this); xmlPath = Application.dataPath + "/Questions.xml"; if (System.IO.File.Exists(xmlPath)) { qContainer = QuestionContainer.Load(xmlPath); qCount = qContainer.Questions.Count; nextID = qContainer.Questions [qCount - 1].qID + 1; } else { qContainer = new QuestionContainer(); qCount = 0; nextID = 1; } nextGameQuestions = new List <Question> (qContainer.Questions); }
public void updateQManager() { qContainer = QuestionContainer.Load(xmlPath); }