mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkWriter consistent NetworkIdentity naming
This commit is contained in:
parent
ce78a61f02
commit
3c5ca56045
@ -291,10 +291,10 @@ public void Write(Transform value)
|
||||
WritePackedUInt32(0);
|
||||
return;
|
||||
}
|
||||
var uv = value.gameObject.GetComponent<NetworkIdentity>();
|
||||
if (uv != null)
|
||||
NetworkIdentity identity = value.gameObject.GetComponent<NetworkIdentity>();
|
||||
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<NetworkIdentity>();
|
||||
if (uv != null)
|
||||
NetworkIdentity identity = value.GetComponent<NetworkIdentity>();
|
||||
if (identity != null)
|
||||
{
|
||||
WritePackedUInt32(uv.netId);
|
||||
WritePackedUInt32(identity.netId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user