This commit is contained in:
vis2k 2021-07-31 12:21:24 +08:00
parent e951abeb34
commit 4685ee653d

View File

@ -1238,6 +1238,7 @@ static void DestroyObject(NetworkIdentity identity, bool destroyServerObject)
UnityEngine.Object.Destroy(identity.gameObject); UnityEngine.Object.Destroy(identity.gameObject);
} }
// otherwise simply .Reset() it. // otherwise simply .Reset() it.
// for Unspawn() etc.
else else
{ {
identity.Reset(); identity.Reset();