Example #1
0
    //搜尋結果
    private void SearchCourse(Player player, byte[] Head, byte[] Body)
    {
        DataList.SearchCourse = NetworkUtil.Deserialize <Data.DataBuffer.CourseData>(Body); //反序列化 課程資料
        DataList.SearchCourseTemp[SearchBtn.SearchIndexTemp] = DataList.SearchCourse;       //保存每一筆資料

        Functions.SearchCourse.GetSearchIndex++;
        SearchBtn.SearchIndexTemp++;
    }
Example #2
0
 private void GetCourseData(Player player, byte[] Head, byte[] Body)
 {
     DataList.CourseData = NetworkUtil.Deserialize <Data.DataBuffer.CourseData>(Body);  //反序列化 課程資料
     DataList.CourseDataTemp[Functions.MyCourseFuncBtn.MyCourseIndexTemp] = DataList.CourseData;
     //Debug.Log($"{DataList.CourseData.ElectiveID} {DataList.CourseData.CourseName}");
     Functions.MyCourseList.MyCourseIndex++;
     Functions.MyCourseFuncBtn.MyCourseIndexTemp++;
 }