public void refreshRoom() { if (lm == null) { lm = GameObject.FindGameObjectWithTag("NetworkManager").GetComponent <Lobby_Manager> (); } if (lm.matchMaker == null) { lm.StartMatchMaker(); } lm.matchMaker.ListMatches(0, 20, "", true, 0, 0, onMatchList); }
public void OnClickHost() { lm.StartMatchMaker(); lm.matchMaker.CreateMatch(matchNameInput.text, (uint)lm.maxPlayers, true, "", "", "", 0, 0, lm.OnMatchCreate); }