Update Character.Deserialize so position synicing works

This commit is contained in:
Sofia 2017-05-09 17:32:17 +03:00
parent 2357aa2da5
commit fcd3aef1c9

View File

@ -90,8 +90,7 @@ namespace Cyber.Entities {
/// </summary>
/// <param name="reader"></param>
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();
}