mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkWriter: removed unnecessary '.gameObject' call
This commit is contained in:
parent
3c5ca56045
commit
42ab1be224
@ -291,7 +291,7 @@ public void Write(Transform value)
|
|||||||
WritePackedUInt32(0);
|
WritePackedUInt32(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
NetworkIdentity identity = value.gameObject.GetComponent<NetworkIdentity>();
|
NetworkIdentity identity = value.GetComponent<NetworkIdentity>();
|
||||||
if (identity != null)
|
if (identity != null)
|
||||||
{
|
{
|
||||||
WritePackedUInt32(identity.netId);
|
WritePackedUInt32(identity.netId);
|
||||||
|
Loading…
Reference in New Issue
Block a user