public Camera(int width, int height, Thing focus = null) { Width = width; Height = height; Center = new Vector2(Width / 2, Height / 2); Scale = 1f; Rotation = 0; Origin = Center / Scale; Focus = focus; }
public void Toggle(Thing e) { if (Focus == null) { Focus = e; } else { Focus = null; } }