mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
null-conditional operator
This commit is contained in:
parent
e15d3cdd71
commit
17eedda836
@ -1038,10 +1038,7 @@ static void DestroyObject(NetworkIdentity identity, bool destroyServerObject)
|
||||
if (LogFilter.Debug) { Debug.Log("DestroyObject instance:" + identity.netId); }
|
||||
NetworkIdentity.spawned.Remove(identity.netId);
|
||||
|
||||
if (identity.clientAuthorityOwner != null)
|
||||
{
|
||||
identity.clientAuthorityOwner.RemoveOwnedObject(identity);
|
||||
}
|
||||
identity.clientAuthorityOwner?.RemoveOwnedObject(identity);
|
||||
|
||||
ObjectDestroyMessage msg = new ObjectDestroyMessage
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user