十年網(wǎng)站開發(fā)經(jīng)驗 + 多家企業(yè)客戶 + 靠譜的建站團隊
量身定制 + 運營維護+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
public int index = 0;
? public int pangeCount = 15;
? public int totalindex;
? public int yuCount;
? public List>datalist = new List
>();
? private GameObject prefabs;
? private GameObject parent;
? public InputField inputField;
? // Start is called before the first frame update
? void Start()
? {
? totalindex = tempcode.data.Count / pangeCount;
? yuCount = tempcode.data.Count % pangeCount;
? if (yuCount< 15)
? {
? for (int i = 0; i< tempcode.data.Count-yuCount; i+=pangeCount)
? {
? List< CaiJueGongchengUIDtata >singlePange = new List();
? for (int j = 0; j< pangeCount; j++)
? {
? singlePange.Add(tempcode.data[i]);
? }
? datalist.Add(singlePange);
? }
? }
? else
? {
? List();
? for (int j = 0; j< yuCount; j++)
? {
? singlePange.Add(tempcode.data[i]);
? }
? datalist.Add(singlePange);
? }
? }
? public void ?OnNextClick()
? {
? if(index>totalindex)
? {
? index = totalindex;
? }
? index += 1;
? UpdateUI(index);
? }
? public void ?OnUpOnvlick()
? {
? if (index == 1)
? {
? return;
? }
? index += 1;
? UpdateUI(index);
? }
? private void UpdateUI(int index)
? {
? for (int i = 0; i< datalist[index].Count; i++)
? {
? GameObject go = Instantiate(prefabs, parent.transform);
? }
? }
你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機房具備T級流量清洗系統(tǒng)配攻擊溯源,準確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級服務(wù)器適合批量采購,新人活動首月15元起,快前往官網(wǎng)查看詳情吧