public void SetConfig(WorldCanmeraConfig config) { IsLockTarget = config.IsLockTarget; CanEdgeMovement = config.CanEdgeMovement; EdgeMovementRatio = config.EdgeMovementRatio; MovementRatio = config.MovementRatio; Zoom = zoom; ZoomRatio = config.ZoomRatio; }
public WorldCanmeraConfig ToConfig() { WorldCanmeraConfig config = new WorldCanmeraConfig() { IsLockTarget = isLockTarget, CanEdgeMovement = canEdgeMovement, EdgeMovementRatio = edgeMovementRatio, MovementRatio = movementRatio, Zoom = zoom, ZoomRatio = zoomRatio, }; return(config); }