Skip to content

Commit a2ca5ea

Browse files
committed
Removed FlushSceneObjects
1 parent e1affb5 commit a2ca5ea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

MLAPI/NetworkingManagerComponents/Core/NetworkSceneManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private static void OnSceneUnload(AsyncOperation operation)
119119
networkedObjects[i].Spawn();
120120
}
121121

122-
SpawnManager.FlushSceneObjects();
122+
//SpawnManager.FlushSceneObjects();
123123
}
124124
else
125125
{

MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ internal static void MarkSceneObjects()
107107
}
108108
}
109109
}
110-
110+
/*
111111
internal static void FlushSceneObjects()
112112
{
113113
if (!NetworkingManager.singleton.isServer)
@@ -151,6 +151,7 @@ internal static void FlushSceneObjects()
151151
}
152152
}
153153
}
154+
*/
154155

155156
internal static NetworkedObject CreateSpawnedObject(int networkedPrefabId, uint networkId, uint owner, bool playerObject, Vector3 position, Quaternion rotation, BitReader reader, bool readSyncedVar, bool readPayload)
156157
{

0 commit comments

Comments
 (0)