123456789101112131415161718192021222324252627282930 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class DianLiManager : UpdateManager
- {
- public DianLiItem[] dllist;
- public override void updateData()
- {
- base.updateData();
- dllist =this.GetComponentsInChildren<DianLiItem>();
- DataManager.Instance.GetDL((data)=> {
- for (int i = 0; i < dllist.Length; i++)
- {
- if(data.serverList.Count>i)
- {
- dllist[i].updateData(data.serverList[i],i);
- dllist[i].gameObject.SetActive(true);
- }
- else
- {
- dllist[i].gameObject.SetActive(false);
- }
- }
- });
- }
- }
|