void FixedUpdate()
 {
     if (movement != null)
     {
         characterMovement.Move(movement.LH, movement.LV);
     }
 }
        void FixedUpdate()
        {
            float lh = Input.GetAxisRaw("Horizontal");
            float lv = Input.GetAxisRaw("Vertical");

            if (socket != null && playerRigidBody != null)
            {
                var currentMovement =
                    new PlayerMovement(sessionId, playerRigidBody.position.x, playerRigidBody.position.z, playerRigidBody.rotation.eulerAngles.y, lh != 0f || lv != 0, lh, lv);

                if (!currentMovement.MovementIsEqual(lastMovement))
                {
                    lastMovement = currentMovement;
                    socket.Emit("move", currentMovement.ToString());
                }
            }

            characterMovement.Move(lh, lv);
        }