NetworkWriter: removed unnecessary '.gameObject' call

This commit is contained in:
vis2k 2018-12-17 23:17:46 +01:00
parent 3c5ca56045
commit 42ab1be224

View File

@ -291,7 +291,7 @@ public void Write(Transform value)
WritePackedUInt32(0);
return;
}
NetworkIdentity identity = value.gameObject.GetComponent<NetworkIdentity>();
NetworkIdentity identity = value.GetComponent<NetworkIdentity>();
if (identity != null)
{
WritePackedUInt32(identity.netId);