private static string GetStudentText(StudentEditorScript.StudentData data)
    {
        StringBuilder stringBuilder = new StringBuilder();

        stringBuilder.Append(string.Concat(new object[]
        {
            data.name,
            " (",
            data.id,
            "):\n"
        }));
        stringBuilder.Append("- Gender: " + (data.isMale ? "Male" : "Female") + "\n");
        stringBuilder.Append("- Class: " + data.attendanceInfo.classNumber + "\n");
        stringBuilder.Append("- Seat: " + data.attendanceInfo.seatNumber + "\n");
        stringBuilder.Append("- Club: " + data.attendanceInfo.club + "\n");
        stringBuilder.Append("- Persona: " + data.personality.persona + "\n");
        stringBuilder.Append("- Crush: " + data.personality.crush + "\n");
        stringBuilder.Append("- Breast size: " + data.cosmetics.breastSize + "\n");
        stringBuilder.Append("- Strength: " + data.stats.strength + "\n");
        stringBuilder.Append("- Hairstyle: " + data.cosmetics.hairstyle + "\n");
        stringBuilder.Append("- Color: " + data.cosmetics.color + "\n");
        stringBuilder.Append("- Eyes: " + data.cosmetics.eyes + "\n");
        stringBuilder.Append("- Stockings: " + data.cosmetics.stockings + "\n");
        stringBuilder.Append("- Accessory: " + data.cosmetics.accessory + "\n");
        stringBuilder.Append("- Schedule blocks: ");
        foreach (ScheduleBlock scheduleBlock in data.scheduleBlocks)
        {
            stringBuilder.Append(string.Concat(new object[]
            {
                "[",
                scheduleBlock.time,
                ", ",
                scheduleBlock.destination,
                ", ",
                scheduleBlock.action,
                "]"
            }));
        }
        stringBuilder.Append("\n");
        stringBuilder.Append("- Info: \"" + data.info + "\"\n");
        return(stringBuilder.ToString());
    }
 private void Awake()
 {
     Dictionary <string, object>[] array = EditorManagerScript.DeserializeJson("Students.json");
     this.students = new StudentEditorScript.StudentData[array.Length];
     for (int i = 0; i < this.students.Length; i++)
     {
         this.students[i] = StudentEditorScript.StudentData.Deserialize(array[i]);
     }
     Array.Sort <StudentEditorScript.StudentData>(this.students, (StudentEditorScript.StudentData a, StudentEditorScript.StudentData b) => a.id - b.id);
     for (int j = 0; j < this.students.Length; j++)
     {
         StudentEditorScript.StudentData studentData = this.students[j];
         UILabel uilabel = UnityEngine.Object.Instantiate <UILabel>(this.studentLabelTemplate, this.listLabelsOrigin);
         uilabel.text = "(" + studentData.id.ToString() + ") " + studentData.name;
         Transform transform = uilabel.transform;
         transform.localPosition = new Vector3(transform.localPosition.x + (float)(uilabel.width / 2), transform.localPosition.y - (float)(j * uilabel.height), transform.localPosition.z);
         uilabel.gameObject.SetActive(true);
     }
     this.studentIndex   = 0;
     this.bodyLabel.text = StudentEditorScript.GetStudentText(this.students[this.studentIndex]);
     this.inputManager   = UnityEngine.Object.FindObjectOfType <InputManagerScript>();
 }