mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Syntax
This commit is contained in:
parent
418fc02b3f
commit
df7c66e4c7
@ -1005,9 +1005,10 @@ static void DestroyObject(GameObject obj)
|
||||
}
|
||||
|
||||
NetworkIdentity identity;
|
||||
if (!GetNetworkIdentity(obj, out identity)) return;
|
||||
|
||||
DestroyObject(identity, true);
|
||||
if (GetNetworkIdentity(obj, out identity))
|
||||
{
|
||||
DestroyObject(identity, true);
|
||||
}
|
||||
}
|
||||
|
||||
static void DestroyObject(NetworkIdentity identity, bool destroyServerObject)
|
||||
|
Loading…
Reference in New Issue
Block a user