public void Execute() { DKAreaProperties props = DKAreaPropertyLookup.LookupPropertiesForArea(teleporter.Destination); DKDrawingPipeline.Instance.SetAreaProperties(props); player.Body.BottomCenter = props.startPos; }
public void SetAreaProperties(DKAreaProperties props) { mapMin = new Vector2(props.origin.X, props.origin.Y); mapMax = new Vector2(props.origin.X + props.size.X - WINDOW_WIDTH, props.origin.Y + props.size.Y - WINDOW_HEIGHT); }