// Token: 0x06000579 RID: 1401 RVA: 0x0004B1A0 File Offset: 0x000495A0 private void Start() { this.students = StudentJson.LoadFromJson(StudentJson.FilePath); if (SceneManager.GetActiveScene().name == "SchoolScene") { this.topics = TopicJson.LoadFromJson(TopicJson.FilePath); StudentManagerScript studentManagerScript = UnityEngine.Object.FindObjectOfType <StudentManagerScript>(); this.ReplaceDeadTeachers(studentManagerScript.FirstNames, studentManagerScript.LastNames); } else if (SceneManager.GetActiveScene().name == "CreditsScene") { this.credits = CreditJson.LoadFromJson(CreditJson.FilePath); } }
public static TopicJson[] LoadFromJson(string path) { TopicJson[] array = new TopicJson[101]; foreach (Dictionary <string, object> d in JsonData.Deserialize(path)) { int num = TFUtils.LoadInt(d, "ID"); if (num == 0) { break; } array[num] = new TopicJson(); TopicJson topicJson = array[num]; topicJson.topics = new int[26]; for (int j = 1; j <= 25; j++) { topicJson.topics[j] = TFUtils.LoadInt(d, j.ToString()); } } return(array); }