public void SetZoom(float newZoom) { if (newZoom < 1) newZoom = 1; if (newZoom > 16) newZoom = 16; isZooming = true; zoomTo = newZoom; }