mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkServer.CleanupNetworkIdentities: add comments
This commit is contained in:
parent
11718d9521
commit
4d971c1e57
@ -138,11 +138,14 @@ static void CleanupNetworkIdentities()
|
||||
{
|
||||
if (identity != null)
|
||||
{
|
||||
// scene objects are reset and disabled.
|
||||
// they always stay in the scene, we don't destroy them.
|
||||
if (identity.sceneId != 0)
|
||||
{
|
||||
identity.Reset();
|
||||
identity.gameObject.SetActive(false);
|
||||
}
|
||||
// spawned objects are destroyed
|
||||
else
|
||||
{
|
||||
GameObject.Destroy(identity.gameObject);
|
||||
|
Loading…
Reference in New Issue
Block a user