public override void Deserialize(NetworkReader reader, GameObject context) { var board = context.GameManager.Board; EventType = (GameEventManager.EventType)reader.ReadInt32(); Start = GeneratedNetworkCode._ReadGridPosProp_None(reader); EndGridPos = GeneratedNetworkCode._ReadGridPosProp_None(reader); EndSquare = board.GetBoardSquare(GridPos.FromGridPosProp(EndGridPos)); var pathBytes = reader.ReadBytesAndSize(); Path = MovementUtils.DeSerializePath(board, pathBytes); MovementType = (ActorData.MovementType)reader.ReadInt32(); DisappearAfterMovement = reader.ReadBoolean(); Respawning = reader.ReadBoolean(); }