Skip to content

Commit 22804c1

Browse files
committed
Removed commented code
1 parent 60d38ff commit 22804c1

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

MLAPI/NetworkingManagerComponents/Core/InternalMessageHandler.Receive.cs

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -371,43 +371,6 @@ internal static void HandleSwitchScene(uint clientId, Stream stream, int channel
371371
objectStream.Position = 0;
372372

373373
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-
}
411374
}
412375
}
413376

0 commit comments

Comments
 (0)