Beispiel #1
0
 public static void SetZoom(float size)
 {
     MinimapZoom.SetZoom(size);
 }
Beispiel #2
0
 public static float GetZoom()
 {
     return(MinimapZoom.GetZoom());
 }
Beispiel #3
0
 public static void ZoomOut()
 {
     MinimapZoom.ZoomOut();
 }
Beispiel #4
0
 public static void ZoomIn()
 {
     MinimapZoom.ZoomIn();
 }
Beispiel #5
0
 private static void MinimapZoom_OnZoomChanged(MinimapZoom obj)
 {
     OnZoomChanged?.Invoke(obj);
 }
 private void Minimap_OnZoomChanged(MinimapZoom obj)
 {
     transform.localScale = baseScale * Minimap.GetZoom() / 180f;
 }
 private void Awake()
 {
     Instance = this;
 }