protected EnvironmentManager.Road GetEnvironmentRoad(SerializedRoad sRoad) { EnvironmentManager.Road road = new EnvironmentManager.Road(); road.position = new Vector3(sRoad.position[0], sRoad.position[1], sRoad.position[2]); road.size = new Vector2(sRoad.size[0], sRoad.size[1]); road.angleRotation = sRoad.angleRotation; return(road); }
protected SerializedRoad GetSerializedRoad(EnvironmentManager.Road road) { SerializedRoad sRoad = new SerializedRoad(); sRoad.position[0] = road.position.x; sRoad.position[1] = road.position.y; sRoad.position[2] = road.position.z; sRoad.size[0] = road.size.x; sRoad.size[1] = road.size.y; sRoad.angleRotation = road.angleRotation; return(sRoad); }