using AX.NetworkSystem; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class PagesManager : MonoBehaviour { private static PagesManager instance; public static PagesManager Instance { get { if (instance == null) { instance = new PagesManager(); instance.Init(); } return instance; } } private void Init() { pageIndex = 1; pageCount = 1; //url= NetworkManager.Instance.httpUrl + "/api/Disasters?"; } private string url = ""; private int pageIndex; public int pageCount; /// /// 当前页码 /// public int PageIndex { get { return pageIndex; } set { pageIndex = value; //TO DO:向服务端申请获取新页码数据 NetworkManager.Default.SendAsync("DISASTERS_PAGEINDEX_REQUEST", pageIndex); } } }