Ejemplo n.º 1
0
    void OnEnable()
    {
        lobbyManager.StartMatchMaker();
        currentPage  = 0;
        previousPage = 0;

        foreach (Transform t in serverListRect)         // This clears previous entries in the list
        {
            Destroy(t.gameObject);
        }

        noServerFound.SetActive(false);
        RequestPage(0);
        refreshButton.onClick.RemoveAllListeners();
        refreshButton.onClick.AddListener(OnRefresh);
    }
Ejemplo n.º 2
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);
    }