hch
8 天以前 2b3fe1175765e0df62caba9dc160c0dbfefb0a8a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using UnityEngine;
using UnityEngine.UI;
 
 
public class ServersSmallTipCell : CellView
{
    [SerializeField] Text[] serversText;
 
 
 
    public void Display(int index)
    {
        for (int i = 0; i < serversText.Length; i++)
        {
            int listIndex = index + i;
            if (listIndex >= ServersSmallTipWin.serverIDList.Count)
            {
                serversText[i].text = "";
                return;
            }
            serversText[i].SetActive(true);
            var serverID = ServersSmallTipWin.serverIDList[index + i];
            serversText[i].text = ServerListCenter.Instance.GetServerName(serverID);
        }
    }
 
 
}