Esempio n. 1
0
        public override void OnMatchCreate(bool success, string extendedInfo, MatchInfo matchInfo)
        {
            base.OnMatchCreate(success, extendedInfo, matchInfo);
            _currentMatchID = (System.UInt64)matchInfo.networkId;

            SteamMatchmaking.SetUNETMatchID(matchInfo.networkId);
            SteamMatchmaking.CreateLobby(ELobbyType.k_ELobbyTypePublic, maxPlayers);

            //SteamMatchmaking.SetLobbyData((CSteamID)result.m_ulSteamIDLobby, "name", matchNameInput.text);

            //Debug.Log("UNET MATCH ID ------ " + _currentMatchID);
        }