From fcd3aef1c9b1c8d9dfc9687cccdfe9b91fb7d310 Mon Sep 17 00:00:00 2001 From: teascade Date: Tue, 9 May 2017 17:32:17 +0300 Subject: [PATCH] Update Character.Deserialize so position synicing works --- Assets/Scripts/Entities/Character.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Scripts/Entities/Character.cs b/Assets/Scripts/Entities/Character.cs index b347f92..fd2b69f 100644 --- a/Assets/Scripts/Entities/Character.cs +++ b/Assets/Scripts/Entities/Character.cs @@ -90,8 +90,7 @@ namespace Cyber.Entities { /// /// public override void Deserialize(NetworkReader reader) { - Vector3 pos = reader.ReadVector3(); - transform.position.Set(pos.x, pos.y, pos.z); + transform.position = reader.ReadVector3(); Move(reader.ReadVector3()); Vector3 rot = reader.ReadVector3(); }