public static void OnLobbyEnter(LobbyEnter_t pCallback) { Logger.Debug($"You have entered lobby {pCallback.m_ulSteamIDLobby}"); Controllers.PlayerController.Instance.StartBroadcasting(); SteamAPI.SetConnectionState(SteamAPI.ConnectionState.CONNECTED); SteamAPI.SendPlayerInfo(Controllers.PlayerController.Instance._playerInfo); }
void BroadcastPlayerInfo() { try { UpdatePlayerInfo(); SteamAPI.SendPlayerInfo(_playerInfo); if (_playerInfo.voip != null && _playerInfo.voip.Length > 0) { _playerInfo.voip = new byte[0]; } } catch (Exception e) { Data.Logger.Error(e); } }