Unity Multiplayer - Sync lobby data - Part 3

Опубликовано: 30 Сентябрь 2024
на канале: Carl Boisvert Dev
2,181
54

In this video, we implement the map selection. The host will be able to select the map and see the change reflected for the other players.

If you have any questions, please leave it in the comment and I'll make sure to try and answer.

00:00 - Intro
00:18 - Map selection UI
00:43 - Create MapSelectionData
03:06 - Create MapSelectionData Asset
03:45 - Code map selection in Lobby UI
09:15 - Demo basic map switching
09:45 - Create LobbyData class
13:41 - Add LobbyData to GameLobbyManager
14:54 - Send lobby data on Create Lobby
15:50 - Update lobby data method
18:40 - Update GameLobbyManager LobbyData on LobbyUpdated
19:43 - Update the map in LobbyUI on LobbyUpdated
20:55 - Send lobby data update on map selection changed
22:18 - Fix previous mistake
22:38 - Demo
23:42 - Remove map selection buttons for non host
26:15 - Demo working map selection
26:57 - Outro