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; } }
private void OnEnable() { Invoke("CheckCloud", 0.2f); countryHighlight = worldMapGlobe.countryHighlighted; canRotate = true; rotateWithKeyboard.ListenerEnableRotation(); state = EnumStateWorld.Waiting; }
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; }
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; }
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; }
public void SetStateToZoomingOutToSpace() { animator.Play("WorldZoom_out"); mapUAE.SetActive(false); state = EnumStateWorld.ZoomingOutToSpace; }