public static void SetZoom(float orthographicSize) { Instance.minimapCamera.orthographicSize = orthographicSize; if (Instance.minimapCamera.orthographicSize < MIN_ZOOM) { Instance.minimapCamera.orthographicSize = MIN_ZOOM; } if (Instance.minimapCamera.orthographicSize > MAX_ZOOM) { Instance.minimapCamera.orthographicSize = MAX_ZOOM; } OnZoomChanged?.Invoke(Instance); }
private static void MinimapZoom_OnZoomChanged(MinimapZoom obj) { OnZoomChanged?.Invoke(obj); }
private static void MinimapCamera_OnZoomChanged(object sender, EventArgs e) { OnZoomChanged?.Invoke(sender, e); }
public void UpdateZoom() { OnZoomChanged?.Invoke(); }