You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
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; |
|
/// <summary> |
|
/// 当前页码 |
|
/// </summary> |
|
public int PageIndex |
|
{ |
|
get |
|
{ |
|
return pageIndex; |
|
} |
|
set |
|
{ |
|
pageIndex = value; |
|
//TO DO:向服务端申请获取新页码数据 |
|
NetworkManager.Default.SendAsync("DISASTERS_PAGEINDEX_REQUEST", pageIndex); |
|
} |
|
} |
|
}
|
|
|