Exemplo n.º 1
0
    private void HostGame()
    {
        lobbyManager.DisplayIsConnecting("HOST");
        lobbyManager.StartMatchMaker();
        lobbyManager.matchMaker.CreateMatch(
            "Collusion " + GetHashCode().ToString(), //matchNameInput.text,                // Match Name
            (uint)lobbyManager.maxPlayers,           // Number of players
            true,                                    // Advertise Match?
            "",                                      //matchPasswordInput.text,            // Match Password
            "",                                      // Public Client Address
            "",                                      // Private Client Address
            0,                                       // eloScore for match
            0,                                       // Request Domain
            lobbyManager.OnMatchCreate);             // callBack Function

        lobbyManager._isMatchMaking = true;
        //lobbyManager.ChangeTo(PLobbyPanel);
    }
Exemplo n.º 2
0
 void JoinMatch(NetworkID networkID, PLobbyManager lobbyManager)
 {
     lobbyManager.matchMaker.JoinMatch(networkID, "", "", "", 0, 0, lobbyManager.OnMatchJoined);
     lobbyManager._isMatchMaking = true;
     lobbyManager.DisplayIsConnecting("CLIENT");
 }