Example #1
0
 private void UPdate()
 {
     if (!lm)
     {
         lm = GameObject.FindGameObjectWithTag("Lobby_Manager").GetComponent <Lobby_Manager>();
     }
 }
Example #2
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 #3
0
    public void Join()
    {
        if (lm == null)
        {
            lm = GameObject.FindGameObjectWithTag("NetworkManager").GetComponent <Lobby_Manager> ();
        }

        var go = lobbyParent.GetComponentsInChildren <Transform> (true);

        foreach (var item in go)
        {
            item.gameObject.SetActive(true);
        }
        lm.matchMaker.JoinMatch(match.networkId, "", "", "", 0, 0, lm.OnMatchJoined);
    }
Example #4
0
 // Use this for initialization
 void Start()
 {
     lm          = GameObject.FindGameObjectWithTag("NetworkManager").GetComponent <Lobby_Manager> ();
     lobbyParent = GameObject.FindGameObjectWithTag("LobbyParent");
 }