@@ -371,43 +371,6 @@ internal static void HandleSwitchScene(uint clientId, Stream stream, int channel
371
371
objectStream . Position = 0 ;
372
372
373
373
NetworkSceneManager . OnSceneSwitch ( sceneIndex , switchSceneGuid , objectStream ) ;
374
-
375
- if ( NetworkingManager . Singleton . NetworkConfig . UsePrefabSync )
376
- {
377
- /*
378
- uint count = reader.ReadUInt32Packed();
379
-
380
- for (int i = 0; i < count; i++)
381
- {
382
- newSceneObjects.Add(new PendingNetworkedObject()
383
- {
384
- IsPlayerObject = reader.ReadBool(),
385
- NetworkId = reader.ReadUInt64Packed(),
386
- OwnerId = reader.ReadUInt32Packed(),
387
- PrefabHash = reader.ReadUInt64Packed(),
388
- Position = new Vector3(reader.ReadSinglePacked(), reader.ReadSinglePacked(), reader.ReadSinglePacked()),
389
- Rotation = Quaternion.Euler(reader.ReadSinglePacked(), reader.ReadSinglePacked(), reader.ReadSinglePacked())
390
- });
391
- }
392
- */
393
-
394
- //NetworkSceneManager.OnSceneSwitch(sceneIndex, switchSceneGuid, objectStream);
395
- }
396
- else
397
- {
398
- /*
399
- Dictionary<ulong, ulong> newSceneObjects = new Dictionary<ulong, ulong>();
400
-
401
- uint count = reader.ReadUInt32Packed();
402
-
403
- for (int i = 0; i < count; i++)
404
- {
405
- newSceneObjects.Add(reader.ReadUInt64Packed(), reader.ReadUInt64Packed());
406
- }
407
- */
408
-
409
- // NetworkSceneManager.OnSceneSwitch(sceneIndex, switchSceneGuid, objectStream);
410
- }
411
374
}
412
375
}
413
376
0 commit comments