Ejemplo n.º 1
0
    private IEnumerator DoMoveCamera(Vector3 from, Vector3 to)
    {
        //IL_0007: Unknown result type (might be due to invalid IL or missing references)
        //IL_0008: Unknown result type (might be due to invalid IL or missing references)
        //IL_000e: Unknown result type (might be due to invalid IL or missing references)
        //IL_000f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0015: Unknown result type (might be due to invalid IL or missing references)
        //IL_0016: Unknown result type (might be due to invalid IL or missing references)
        //IL_001c: Unknown result type (might be due to invalid IL or missing references)
        //IL_001d: Unknown result type (might be due to invalid IL or missing references)
        Vector3Interpolator ip = new Vector3Interpolator();

        yield return((object)new WaitForSeconds(0.5f));

        Vector3 scaleBegin = playerMarker.get_localScale();
        Vector3 scaleEnd   = new Vector3(0f, 0f, 0f);

        ip.Set(0.5f, scaleBegin, scaleEnd, null, default(Vector3), null);
        ip.Play();
        while (ip.IsPlaying())
        {
            ip.Update();
            playerMarker.set_localScale(ip.Get());
            yield return((object)null);
        }
        yield return((object)new WaitForSeconds(0f));

        ip.Set(0.7f, from, to, null, default(Vector3), null);
        ip.Play();
        while (ip.IsPlaying())
        {
            ip.Update();
            worldMapCamera.targetPos = ip.Get();
            yield return((object)null);
        }
        RegionTable.Data targetData = openedRegionInfo[toRegionID].data;
        if (targetData != null)
        {
            playerMarker.set_localPosition(targetData.markerPos);
        }
        yield return((object)new WaitForSeconds(0.1f));

        ip.Set(0.5f, scaleEnd, scaleBegin, null, default(Vector3), null);
        ip.Play();
        while (ip.IsPlaying())
        {
            ip.Update();
            playerMarker.set_localScale(ip.Get());
            yield return((object)null);
        }
        yield return((object)new WaitForSeconds(0.4f));

        OnQuery_EXIT();
    }
Ejemplo n.º 2
0
 private void LateUpdate()
 {
     //IL_001d: Unknown result type (might be due to invalid IL or missing references)
     //IL_0022: Unknown result type (might be due to invalid IL or missing references)
     //IL_0024: Unknown result type (might be due to invalid IL or missing references)
     //IL_0041: Unknown result type (might be due to invalid IL or missing references)
     //IL_0046: Unknown result type (might be due to invalid IL or missing references)
     //IL_0082: Unknown result type (might be due to invalid IL or missing references)
     //IL_00a9: Unknown result type (might be due to invalid IL or missing references)
     if (isRunning)
     {
         Transform mainCameraTransform = MonoBehaviourSingleton <AppMain> .I.mainCameraTransform;
         Vector3   position            = cameraPosAnim.Update();
         mainCameraTransform.set_position(position);
         if (locationImage != null)
         {
             Vector3 localPosition = locationImage.get_localPosition();
             localPosition.x = (0f - position.x) * 50f;
             localPosition.y = (initCameraPos.y - position.y) * 50f;
             locationImage.set_localPosition(localPosition);
             float num = position.z * 0.1f + 1f;
             locationImageRoot.set_localScale(new Vector3(num, num, 1f));
         }
     }
 }
Ejemplo n.º 3
0
 private void LateUpdate()
 {
     //IL_0037: Unknown result type (might be due to invalid IL or missing references)
     //IL_0042: Unknown result type (might be due to invalid IL or missing references)
     //IL_007f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0095: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b5: Unknown result type (might be due to invalid IL or missing references)
     //IL_00ba: Unknown result type (might be due to invalid IL or missing references)
     //IL_0105: Unknown result type (might be due to invalid IL or missing references)
     //IL_010c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0111: Unknown result type (might be due to invalid IL or missing references)
     if (playerRotAnim.IsPlaying() && playerLoader != null && !playerLoader.isLoading)
     {
         playerLoader.get_transform().set_rotation(playerRotAnim.Update());
     }
     if (cameraPosAnim.IsPlaying())
     {
         targetCamera.set_fieldOfView(cameraFovAnim.Update());
         targetCameraTransform.set_position(cameraPosAnim.Update());
         targetCameraTransform.set_rotation(cameraRotAnim.Update());
         if (cameraTurningMode)
         {
             Vector3 val = -targetCameraTransform.get_forward();
             val.x *= parameter.cameraTargetDistance;
             val.y  = parameter.cameraHeight;
             val.z *= parameter.cameraTargetDistance;
             targetCameraTransform.set_position(val + parameter.playerPos);
         }
     }
 }
 private void Update()
 {
     //IL_0047: Unknown result type (might be due to invalid IL or missing references)
     //IL_0083: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b4: Unknown result type (might be due to invalid IL or missing references)
     //IL_00e5: Unknown result type (might be due to invalid IL or missing references)
     if (lookAt != null)
     {
         if (Object.op_Implicit(lookAt as Transform))
         {
             _transform.LookAt(lookAt as Transform);
         }
         else
         {
             _transform.LookAt((Vector3)lookAt);
         }
     }
     if (play)
     {
         if (translate != null && translate.IsPlaying())
         {
             _transform.set_localPosition(translate.Update());
         }
         if (rotate != null && rotate.IsPlaying())
         {
             _transform.set_localEulerAngles(rotate.Update());
         }
         if (scaling != null && scaling.IsPlaying())
         {
             _transform.set_localScale(scaling.Update());
         }
     }
 }
Ejemplo n.º 5
0
 private void LateUpdate()
 {
     //IL_001c: Unknown result type (might be due to invalid IL or missing references)
     if (anim.IsPlaying())
     {
         _transform.set_localPosition(anim.Update());
     }
 }
Ejemplo n.º 6
0
 private void Update()
 {
     //IL_001e: Unknown result type (might be due to invalid IL or missing references)
     //IL_003d: Unknown result type (might be due to invalid IL or missing references)
     //IL_0042: Unknown result type (might be due to invalid IL or missing references)
     //IL_004d: Unknown result type (might be due to invalid IL or missing references)
     //IL_0052: Unknown result type (might be due to invalid IL or missing references)
     if (!(model == null))
     {
         model.set_localPosition(animPos.Update());
         model.set_localRotation(Quaternion.Euler(new Vector3(-6f, 0f, 0f)) * animRot.Update());
     }
 }
Ejemplo n.º 7
0
    private IEnumerator DoGlowRegion(Vector3 from, Vector3 to)
    {
        //IL_0007: Unknown result type (might be due to invalid IL or missing references)
        //IL_0008: Unknown result type (might be due to invalid IL or missing references)
        //IL_000e: Unknown result type (might be due to invalid IL or missing references)
        //IL_000f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0015: Unknown result type (might be due to invalid IL or missing references)
        //IL_0016: Unknown result type (might be due to invalid IL or missing references)
        //IL_001c: Unknown result type (might be due to invalid IL or missing references)
        //IL_001d: Unknown result type (might be due to invalid IL or missing references)
        yield return((object)new WaitForSeconds(0.5f));

        Vector3Interpolator ip         = new Vector3Interpolator();
        Vector3             zoomDownTo = to + new Vector3(0f, 0f, -3f);

        ip.Set(1f, from, zoomDownTo, null, default(Vector3), null);
        ip.Play();
        while (ip.IsPlaying())
        {
            ip.Update();
            worldMapCamera.targetPos = ip.Get();
            yield return((object)null);
        }
        Transform toRegion = regionAreas[toRegionID];

        toRegion.get_gameObject().SetActive(true);
        Renderer toRegionRenderer = toRegion.GetComponent <Renderer>();

        toRegionRenderer.get_material().SetFloat("_Alpha", 0f);
        Renderer topRenderer = glowRegionTop.GetComponent <Renderer>();

        topRenderer.get_material().SetFloat("_Alpha", 0f);
        topRenderer.get_material().SetFloat("_AddColor", 1f);
        topRenderer.get_material().SetFloat("_BlendRate", 1f);
        topRenderer.set_sortingOrder(2);
        glowRegionTop.get_gameObject().SetActive(true);
        DelayExecute(1f, delegate
        {
            //IL_000b: Unknown result type (might be due to invalid IL or missing references)
            ((_003CDoGlowRegion_003Ec__Iterator16E) /*Error near IL_0211: stateMachine*/)._003C_003Ef__this.mapGlowEffectA.get_gameObject().SetActive(true);
            Renderer component = ((_003CDoGlowRegion_003Ec__Iterator16E) /*Error near IL_0211: stateMachine*/)._003C_003Ef__this.mapGlowEffectA.GetComponent <Renderer>();
            component.set_sortingOrder(1);
        });
        yield return((object)new WaitForSeconds(1f));

        ip.Set(1f, zoomDownTo, to, null, default(Vector3), null);
        ip.Play();
        while (ip.IsPlaying())
        {
            ip.Update();
            worldMapCamera.targetPos = ip.Get();
            yield return((object)null);
        }
        FloatInterpolator fip = new FloatInterpolator();

        fip.Set(2f, 0f, 1.5f, null, 0f, null);
        fip.Play();
        SoundManager.PlayOneShotUISE(SE_ID_SMOKE);
        while (fip.IsPlaying())
        {
            fip.Update();
            topRenderer.get_material().SetFloat("_Alpha", fip.Get());
            yield return((object)null);
        }
        toRegionRenderer.get_material().SetFloat("_Alpha", 1f);
        mapGlowEffectParticleA.Stop();
        mapGlowEffectB.get_gameObject().SetActive(true);
        yield return((object)new WaitForSeconds(0f));

        fip.Set(0.2f, 1f, 0f, null, 0f, null);
        fip.Play();
        while (fip.IsPlaying())
        {
            fip.Update();
            topRenderer.get_material().SetFloat("_Alpha", fip.Get());
            yield return((object)null);
        }
        yield return((object)new WaitForSeconds(0f));

        targetRegionIcon.get_gameObject().SetActive(true);
        TweenScale tweenScale = targetRegionIcon.GetComponent <TweenScale>();

        tweenScale.PlayForward();
        yield return((object)new WaitForSeconds(1f));

        mapGlowEffectParticleB.Stop();
        bool        isTweenEnd = false;
        UITweenCtrl tweenCtrl  = telop.GetComponent <UITweenCtrl>();

        tweenCtrl.Reset();
        tweenCtrl.Play(true, delegate
        {
            ((_003CDoGlowRegion_003Ec__Iterator16E) /*Error near IL_04df: stateMachine*/)._003CisTweenEnd_003E__7 = true;
        });
        SoundManager.PlayOneShotUISE(SE_ID_LOGO);
        while (!isTweenEnd)
        {
            yield return((object)null);
        }
        yield return((object)new WaitForSeconds(0f));

        Vector3 scaleBegin = playerMarker.get_localScale();
        Vector3 scaleEnd   = new Vector3(0f, 0f, 0f);

        ip.Set(0.5f, scaleBegin, scaleEnd, null, default(Vector3), null);
        ip.Play();
        while (ip.IsPlaying())
        {
            ip.Update();
            playerMarker.set_localScale(ip.Get());
            yield return((object)null);
        }
        RegionTable.Data targetData = openedRegionInfo[toRegionID].data;
        if (targetData != null)
        {
            playerMarker.set_localPosition(targetData.markerPos);
        }
        yield return((object)new WaitForSeconds(0.1f));

        ip.Set(0.5f, scaleEnd, scaleBegin, null, default(Vector3), null);
        ip.Play();
        while (ip.IsPlaying())
        {
            ip.Update();
            playerMarker.set_localScale(ip.Get());
            yield return((object)null);
        }
        yield return((object)new WaitForSeconds(0.4f));

        OnQuery_EXIT();
    }