Skip to content

Commit 2679102

Browse files
committed
feat: upgrade MPS SDK to 1.0.0
1 parent 3db7c2b commit 2679102

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Assets/Scripts/UnityServices/Lobbies/LobbyServiceFacade.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,14 @@ public void EndTracking()
142142
try
143143
{
144144
var lobby = /*await m_LobbyApiInterface.CreateLobby(AuthenticationService.Instance.PlayerId, lobbyName, maxPlayers, isPrivate, m_LocalUser.GetDataForUnityServices(), null);*/
145-
await MultiplayerService.Instance.CreateSessionAsync(new CreateSessionOptions(2)
145+
await MultiplayerService.Instance.CreateSessionAsync(new SessionOptions()
146146
{
147+
MaxPlayers = 2,
147148
Name = lobbyName,
148149
IsPrivate = isPrivate,
149150
Password = null,//string.IsNullOrEmpty(Password) ? null : Password,
150151
IsLocked = false, //Todos
151-
}.WithRelayConnection());
152+
}.WithRelayNetwork());
152153
return (true, lobby);
153154
}
154155
catch (LobbyServiceException e)

Packages/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"com.unity.postprocessing": "3.2.2",
1616
"com.unity.render-pipelines.universal": "14.0.9",
1717
"com.unity.services.authentication": "2.7.2",
18-
"com.unity.services.multiplayer": "0.2.0",
18+
"com.unity.services.multiplayer": "1.0.0",
1919
"com.unity.test-framework": "1.1.33",
2020
"com.unity.textmeshpro": "3.0.6",
2121
"com.unity.timeline": "1.7.6",

0 commit comments

Comments
 (0)