Esempio n. 1
0
        public void ListenerAnimationArriveToZoom()
        {
            switch (state)
            {
            case EnumStateWorld.None:
                return;

            case EnumStateWorld.Waiting:
                return;

            case EnumStateWorld.RotatingToFaceCountry:
                return;

            case EnumStateWorld.ZoomingToCountry:
                canInteract = true;
                state       = EnumStateWorld.WaitingToClickWell;
                return;

            case EnumStateWorld.ZoomingOutToSpace:
                //this is called when you start zooming out, it should be called when it ends to zoomOut
                setStateToWaiting();
                return;

            case EnumStateWorld.WaitingToClickWell:
                return;

            default:
                break;
            }
        }
Esempio n. 2
0
 private void OnEnable()
 {
     Invoke("CheckCloud", 0.2f);
     countryHighlight = worldMapGlobe.countryHighlighted;
     canRotate        = true;
     rotateWithKeyboard.ListenerEnableRotation();
     state = EnumStateWorld.Waiting;
 }
Esempio n. 3
0
 private void setStateToZoomingToCountry()
 {
     currentLerpTime = 0;
     animator.Play("WorldZoom_intro");
     mapUAE.SetActive(true);
     //GetComponent<ProLerpPosition>().ListenerStartLerp(transform.position, mapUAE.transform.position,
     //   ProLerpPosition.EnumLerpType.InvertedExponentialMovement);
     state = EnumStateWorld.ZoomingToCountry;
 }
Esempio n. 4
0
 private void setStateToWaiting()
 {
     canZoom   = true;
     canRotate = true;
     rotateWithKeyboard.ListenerEnableRotation();
     cameraZoom.SetEnable(true);
     inactiveDetection.canDetect = true;
     //if(countryHighlight != null)countryHighlight.hidden = false;
     worldMapGlobe.showCursor             = true;
     worldMapGlobe.enableCountryHighlight = true;
     state = EnumStateWorld.Waiting;
 }
Esempio n. 5
0
        private void setStateToRotatingToFaceCountry()
        {
            StartUIAnimation();
            canZoom   = false;
            canRotate = false;
            rotateWithKeyboard.ListenerDisableRotation();
            if (Camera.main.fieldOfView < 15)
            {
                cameraZoom.Reset();
            }
            cameraZoom.SetEnable(false);
            mapUAE.SetActive(true);
            inactiveDetection.canDetect = false;
            //countryHighlight.hidden = true;
            worldMapGlobe.showCursor             = false;
            worldMapGlobe.enableCountryHighlight = false;

            startQuat = world.transform.localRotation;
            endQuat   = countryEmiratos.transform.localRotation;
            state     = EnumStateWorld.RotatingToFaceCountry;
        }
Esempio n. 6
0
 public void SetStateToZoomingOutToSpace()
 {
     animator.Play("WorldZoom_out");
     mapUAE.SetActive(false);
     state = EnumStateWorld.ZoomingOutToSpace;
 }