This commit is contained in:
vis2k 2021-03-01 18:41:29 +08:00
parent 4fedf417b1
commit a2b828a511

View File

@ -481,12 +481,9 @@ internal static void LateUpdate()
{ {
identity.ServerUpdate(); identity.ServerUpdate();
} }
else // spawned list should have no null entries because we
{ // always call Remove in OnObjectDestroy everywhere.
// spawned list should have no null entries because we else Debug.LogWarning("Found 'null' entry in spawned list for netId=" + kvp.Key + ". Please call NetworkServer.Destroy to destroy networked objects. Don't use GameObject.Destroy.");
// always call Remove in OnObjectDestroy everywhere.
Debug.LogWarning("Found 'null' entry in spawned list for netId=" + kvp.Key + ". Please call NetworkServer.Destroy to destroy networked objects. Don't use GameObject.Destroy.");
}
} }
// update all connections to send out batched messages in interval // update all connections to send out batched messages in interval