mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
add TODO
This commit is contained in:
parent
461ce519ff
commit
f19385d565
@ -1071,6 +1071,11 @@ static void ClearNullFromSpawned()
|
|||||||
static void OnHostClientObjectDestroy(ObjectDestroyMessage message)
|
static void OnHostClientObjectDestroy(ObjectDestroyMessage message)
|
||||||
{
|
{
|
||||||
// Debug.Log("NetworkClient.OnLocalObjectObjDestroy netId:" + msg.netId);
|
// 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);
|
NetworkIdentity.spawned.Remove(message.netId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user