private void getChanels(TNet.List<Channel.Info> list)
{
foreach (Channel.Info mm in list)
{
print(mm.id + " : " + mm.level);
}
}
private void lianjie(bool success, string message)
{
if (success)
{
Debug.Log("连接上了");
TNManager.GetChannelList(getChanels);
TNet.List<ServerList.Entry> list = LobbyClient.knownServers.list;
print(list.size);
ServerList.Entry entry = list.buffer[0];
print(entry.internalAddress.Address.ToString());
}
}
public void dianji()
{
//加入90号房间,场景名为ww,注意第三个参数false表示如果房间没有人了,那么这个房间也就不存在了
TNManager.JoinChannel(90, "ww", false, 255, null);
}
FR:徐海涛(hunk xu)
QQ技术交流群:386476712