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);
|
}
|
}
|
|
|
}
|