Skip to content

Commit 3698f17

Browse files
committed
Merge branch 'develop' into feature/in-game-feed
2 parents 6ff7f3d + 5f033ac commit 3698f17

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

Assets/BossRoom/Scripts/Client/UI/HeroActionBar.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ void Update()
197197
// If we have another player selected, see if their aliveness state has changed,
198198
// and if so, update the interactiveness of the basic-action button
199199

200+
if (Input.GetKeyUp(KeyCode.Alpha4))
201+
{
202+
m_ButtonInfo[ActionButtonType.EmoteBar].Button.OnPointerUpEvent.Invoke();
203+
}
204+
200205
if (!m_SelectedPlayerNetState) { return; }
201206

202207
bool isAliveNow = m_SelectedPlayerNetState.NetworkLifeState.LifeState.Value == LifeState.Alive;

Assets/BossRoom/Scripts/Shared/Net/UnityServices/Lobbies/LobbyAPIInterface.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,15 @@ public async Task<Lobby> QuickJoinLobby(string requesterUasId, Dictionary<string
115115

116116
public async Task RemovePlayerFromLobby(string requesterUasId, string lobbyId)
117117
{
118-
await ExceptionHandling(Lobbies.Instance.RemovePlayerAsync(lobbyId, requesterUasId));
118+
try
119+
{
120+
await ExceptionHandling(Lobbies.Instance.RemovePlayerAsync(lobbyId, requesterUasId));
121+
}
122+
catch (LobbyServiceException e)
123+
when (e is {Reason: LobbyExceptionReason.PlayerNotFound})
124+
{
125+
// If Player is not found, they have already left the lobby or have been kicked out. No need to throw here
126+
}
119127
}
120128

121129
public async Task<QueryResponse> QueryAllLobbies()

Packages/com.unity.multiplayer.samples.coop/Utilities/Net/SessionManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public string GetPlayerId(ulong clientId)
142142
return playerId;
143143
}
144144

145-
Debug.LogError($"No client player ID found mapped to the given client ID: {clientId}");
145+
Debug.Log($"No client player ID found mapped to the given client ID: {clientId}");
146146
return null;
147147
}
148148

@@ -160,7 +160,7 @@ public string GetPlayerId(ulong clientId)
160160
return GetPlayerData(playerId);
161161
}
162162

163-
Debug.LogError($"No client player ID found mapped to the given client ID: {clientId}");
163+
Debug.Log($"No client player ID found mapped to the given client ID: {clientId}");
164164
return null;
165165
}
166166

@@ -176,7 +176,7 @@ public string GetPlayerId(ulong clientId)
176176
return data;
177177
}
178178

179-
Debug.LogError($"No PlayerData of matching player ID found: {playerId}");
179+
Debug.Log($"No PlayerData of matching player ID found: {playerId}");
180180
return null;
181181
}
182182

0 commit comments

Comments
 (0)