using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using XFramework.Objects; /// /// 可翻页显示的数据展示框 /// public class EnquireConntentCtrl : MonoBasePanel { public GameObject showMessPrefab; List showPool = new List();//当前显示或隐藏的所有子物体 int Page = 1;//默认显示第一页 List< User> userMsg = new List();//数据库中所有的用户数据 List recordClasses = new List();//数据库中查询到的所有记录信息 int allPage;//总页数 public int onePageCount=10;//单页显示的数量 public MessType messType = MessType.result; public UserType userType = UserType.Teacher; public Sprite iconSprite; Text showPage; // Use this for initialization protected override void Start() { base.Start(); if (messType == MessType.user) { EventCenter.Instance.AddEventListener("ChangeUser", ChangeUser); EventCenter.Instance.AddEventListener("AddUser", AddNewMess); } } protected override void InitComponent() { Debug.Log("conntent ui Init "); this.transform.parent.Find("Button_nextPage").GetComponent