void SetLoadedScenes(MessageEventArgs args) { if (!_Connections.TryGetValue(args.playerId, out var connection)) { Debug.LogError("SetLoadedScenes was sent but the connection has not been created"); return; } var msg = LiveLinkSceneMsg.FromMsg(args.data, Allocator.TempJob); LiveLinkMsg.LogReceived($"SetLoadedScenes: Loaded {msg.LoadedScenes.ToDebugString()}, Removed {msg.RemovedScenes.ToDebugString()}"); connection.ApplyLiveLinkSceneMsg(msg); msg.Dispose(); }
public void ApplyLiveLinkSceneMsg(LiveLinkSceneMsg msg) { SetLoadedScenes(msg.LoadedScenes); QueueRemovedScenes(msg.RemovedScenes); }