Ejemplo n.º 1
0
    private void OnLobbyCreated(LobbyCreated_t callback)
    {
        if (callback.m_eResult != EResult.k_EResultOK)
        {
            ButtonsHolder.SetActive(true);
            return;
        }

        networkManager.StartHost();
        SteamMatchmaking.SetLobbyData(
            new CSteamID(callback.m_ulSteamIDLobby),
            HostAddressKey,
            SteamUser.GetSteamID().ToString()
            );
    }
Ejemplo n.º 2
0
 public void HostLobby()
 {
     networkManager.StartHost();
     landingPagePanel.SetActive(false);
 }