public void InitStudent(StudentData studentData) { m_StudentData = studentData; m_Score.text = studentData.CurScore.ToString(); m_TotalScore = studentData.CurScore; m_Id = m_StudentData.Id; //ResourceUtility.LoadUISprite("Topic/head/touxiang", m_Head); }
/// <summary> /// 初始化思维课信息 /// </summary> /// <param name="studentCount">学员数量</param> /// <param name="lessonLength">多少课</param> public void InitManager(int studentCount, int lessonLength) { m_StudentLength = studentCount; m_LessonLength = lessonLength; m_StudentDatas.Clear(); for (int id = 0; id < studentCount; id++) { StudentData data = new StudentData(id, "学员:" + id, lessonLength); m_StudentDatas.Add(data); } }