fix : JoinMenu Bug
Reported by MoProductions01 in our issue tracker!
This commit is contained in:
Родитель
b6fd9c806c
Коммит
3bce40e66c
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче