This commit is contained in:
vis2k 2021-03-13 13:52:44 +08:00
parent a643cf7045
commit 01d1630b7f

View File

@ -960,12 +960,12 @@ static NetworkIdentity SpawnPrefab(SpawnMessage message)
return null; return null;
} }
static NetworkIdentity SpawnSceneObject(SpawnMessage msg) static NetworkIdentity SpawnSceneObject(SpawnMessage message)
{ {
NetworkIdentity identity = GetAndRemoveSceneObject(msg.sceneId); NetworkIdentity identity = GetAndRemoveSceneObject(message.sceneId);
if (identity == null) if (identity == null)
{ {
Debug.LogError($"Spawn scene object not found for {msg.sceneId:X} SpawnableObjects.Count={spawnableObjects.Count}"); Debug.LogError($"Spawn scene object not found for {message.sceneId:X} SpawnableObjects.Count={spawnableObjects.Count}");
// dump the whole spawnable objects dict for easier debugging // dump the whole spawnable objects dict for easier debugging
//foreach (KeyValuePair<ulong, NetworkIdentity> kvp in spawnableObjects) //foreach (KeyValuePair<ulong, NetworkIdentity> kvp in spawnableObjects)