mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00: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); }
|
if (LogFilter.Debug) { Debug.Log("DestroyObject instance:" + identity.netId); }
|
||||||
NetworkIdentity.spawned.Remove(identity.netId);
|
NetworkIdentity.spawned.Remove(identity.netId);
|
||||||
|
|
||||||
if (identity.clientAuthorityOwner != null)
|
identity.clientAuthorityOwner?.RemoveOwnedObject(identity);
|
||||||
{
|
|
||||||
identity.clientAuthorityOwner.RemoveOwnedObject(identity);
|
|
||||||
}
|
|
||||||
|
|
||||||
ObjectDestroyMessage msg = new ObjectDestroyMessage
|
ObjectDestroyMessage msg = new ObjectDestroyMessage
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user