Reported by MoProductions01 in our issue tracker!
This commit is contained in:
UnityJacob 2023-01-24 15:00:02 -08:00
Родитель b6fd9c806c
Коммит 3bce40e66c
3 изменённых файлов: 11 добавлений и 10 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -70,3 +70,5 @@ crashlytics-build.properties
.UserSettings/
UserSettings
ProjectSettings/RiderScriptEditorPersistedState.asset
.vsconfig
ProjectSettings/Packages/com.unity.services.vivox/Settings.json

Просмотреть файл

@ -383,7 +383,7 @@ namespace LobbyRelaySample
string playerId = AuthenticationService.Instance.PlayerId;
await LobbyService.Instance.RemovePlayerAsync(m_CurrentLobby.Id, playerId);
m_CurrentLobby = null;
Dispose();
}
public async Task UpdatePlayerDataAsync(Dictionary<string, string> data)

Просмотреть файл

@ -11,14 +11,11 @@ namespace LobbyRelaySample.UI
/// </summary>
public class JoinMenuUI : UIPanelBase
{
[SerializeField]
LobbyEntryUI m_LobbyEntryPrefab;
[SerializeField] LobbyEntryUI m_LobbyEntryPrefab;
[SerializeField]
RectTransform m_LobbyButtonParent;
[SerializeField] RectTransform m_LobbyButtonParent;
[SerializeField]
TMP_InputField m_JoinCodeField;
[SerializeField] TMP_InputField m_JoinCodeField;
public JoinCreateLobbyUI m_JoinCreateLobbyUI;
/// <summary>
@ -69,9 +66,11 @@ namespace LobbyRelaySample.UI
public void OnJoinButtonPressed()
{
if (m_LocalLobbySelected == null)
return;
var selectedLobbyID = m_LocalLobbySelected.LobbyID.Value;
string selectedLobbyID = null;
if (m_LocalLobbySelected != null)
{
selectedLobbyID = m_LocalLobbySelected.LobbyID.Value;
}
Manager.JoinLobby(selectedLobbyID, m_InputLobbyCode);
m_LocalLobbySelected = null;