unity5.3 to unity5.4 网络部分修改

Lobby Manager: 
public override void OnMatchCreate(bool success, string extendedInfo, MatchInfo matchInfo)
{
_currentMatchID = (ulong)matchInfo.networkId;

base.OnMatchCreate(success, extendedInfo, matchInfo);
}

public override void OnDestroyMatch(bool success, string extendedInfo)
{
if (_disconnectServer)
{
StopMatchMaker();
StopHost();
}
base.OnDestroyMatch(success, extendedInfo);
}


MatchDesc:
public void Populate(MatchInfoSnapshot match, LobbyManager lobbyManager, Color c)
{ ...

I disabled OnGUIMatchList function.I dont need it.

Join Match:
matchMaker.JoinMatch(networkID, "","","",0,0, lobbyManager.OnMatchJoined);

你可能感兴趣的:(unity5.3 to unity5.4 网络部分修改)