From 3c5ca5604528653c92eaad2921a48d5bb18ba7d5 Mon Sep 17 00:00:00 2001 From: vis2k Date: Mon, 17 Dec 2018 23:17:23 +0100 Subject: [PATCH] NetworkWriter consistent NetworkIdentity naming --- Mirror/Runtime/NetworkWriter.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Mirror/Runtime/NetworkWriter.cs b/Mirror/Runtime/NetworkWriter.cs index d1d9c3303..51618455e 100644 --- a/Mirror/Runtime/NetworkWriter.cs +++ b/Mirror/Runtime/NetworkWriter.cs @@ -291,10 +291,10 @@ public void Write(Transform value) WritePackedUInt32(0); return; } - var uv = value.gameObject.GetComponent(); - if (uv != null) + NetworkIdentity identity = value.gameObject.GetComponent(); + if (identity != null) { - WritePackedUInt32(uv.netId); + WritePackedUInt32(identity.netId); } else { @@ -310,10 +310,10 @@ public void Write(GameObject value) WritePackedUInt32(0); return; } - var uv = value.GetComponent(); - if (uv != null) + NetworkIdentity identity = value.GetComponent(); + if (identity != null) { - WritePackedUInt32(uv.netId); + WritePackedUInt32(identity.netId); } else {