Exemplo n.º 1
0
    private void SetLastServer(string[] firstServer)
    {
        string[] lastinfo = IpData.GetLastServerData();
        if (null == lastinfo || lastinfo.Length <= 0)
        {
            lastinfo = firstServer;
        }

        m_lastLoginItem.SetInfo(-1, lastinfo[0], lastinfo[3]);
    }
Exemplo n.º 2
0
 public void SetServerList(List <string[]> list)
 {
     for (int i = list.Count - 1; i >= 0; --i)
     {
         GameObject go = Instantiate(_listItem) as GameObject;
         go.transform.SetParent(midGrid);
         go.transform.localScale = Vector3.one;
         ServerListItem item = go.GetComponent <ServerListItem>();
         item.SetInfo(i, list[i][0], list[i][3]);
     }
 }