Example #1
0
    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);
    }
Example #2
0
 public void OnClickHost()
 {
     lm.StartMatchMaker();
     lm.matchMaker.CreateMatch(matchNameInput.text, (uint)lm.maxPlayers, true, "", "", "", 0, 0, lm.OnMatchCreate);
 }