Exemplo n.º 1
0
 private void StartAnim(float targetZoom)
 {
     fromZoom = map.floatZoom;
     toZoom   = targetZoom;
     if (map.zoomRange != null)
     {
         toZoom = map.zoomRange.CheckAndFix(toZoom);
     }
     progress      = 0;
     inputPosition = control.GetInputPosition();
     isAnim        = true;
 }
Exemplo n.º 2
0
        private void StartAnim(float targetZoom)
        {
            fromZoom = map.floatZoom;
            toZoom   = targetZoom;
            if (map.zoomRange != null)
            {
                toZoom = map.zoomRange.CheckAndFix(toZoom);
            }
            progress      = 0;
            inputPosition = control.GetInputPosition();
            isAnim        = true;

            lastUpdateTime = Time.time;

            map.OnMapUpdated -= UpdateZoom;
            map.OnMapUpdated += UpdateZoom;

            map.Redraw();
        }