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海外機(jī)房具備T級(jí)流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級(jí)服務(wù)器適合批量采購,新人活動(dòng)首月15元起,快前往官網(wǎng)查看詳情吧