This commit is contained in:
vis2k 2021-03-13 19:40:18 +08:00
parent 461ce519ff
commit f19385d565

View File

@ -1071,6 +1071,11 @@ static void ClearNullFromSpawned()
static void OnHostClientObjectDestroy(ObjectDestroyMessage message)
{
// Debug.Log("NetworkClient.OnLocalObjectObjDestroy netId:" + msg.netId);
// TODO why do we do this?
// in host mode, .spawned is shared between server and client.
// removing it on client would remove it on server.
// huh.
NetworkIdentity.spawned.Remove(message.netId);
}