コード例 #1
0
        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);
        }
コード例 #2
0
 private static void MinimapZoom_OnZoomChanged(MinimapZoom obj)
 {
     OnZoomChanged?.Invoke(obj);
 }
コード例 #3
0
 private static void MinimapCamera_OnZoomChanged(object sender, EventArgs e)
 {
     OnZoomChanged?.Invoke(sender, e);
 }
コード例 #4
0
 public void UpdateZoom()
 {
     OnZoomChanged?.Invoke();
 }