Update() private méthode

private Update ( ) : void
Résultat void
 protected void Update()
 {
     //IL_004c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0051: Unknown result type (might be due to invalid IL or missing references)
     //IL_0080: Unknown result type (might be due to invalid IL or missing references)
     //IL_0086: Unknown result type (might be due to invalid IL or missing references)
     //IL_008c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0091: Unknown result type (might be due to invalid IL or missing references)
     //IL_00c6: Unknown result type (might be due to invalid IL or missing references)
     //IL_00d2: Unknown result type (might be due to invalid IL or missing references)
     if (animStep == 0)
     {
         if (anim.IsPlaying())
         {
             animTime += Time.get_deltaTime();
             _transform.set_localRotation(Quaternion.AngleAxis(animTime * parameter.rotationSpeed, Vector3.get_up()));
             float num = animTime / parameter.popAnimTime;
             if (num > 1f)
             {
                 num = 1f;
             }
             Vector3 position = Vector3.Lerp(dropPos, targetPos, num);
             position.y = anim.Update() + parameter.defHeight;
             if (anim.IsPlaying())
             {
                 _transform.set_position(position);
             }
         }
         else
         {
             this.get_gameObject().SetActive(false);
             animStep++;
         }
     }
 }
Exemple #2
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()
 {
     if (nextAnimState == null)
     {
         if (currentAnimState != null)
         {
             currentAnimState.set_enabled(true);
             currentAnimState.set_weight(1f);
         }
     }
     else
     {
         changeInterp.Update();
         currentAnimState.set_weight(changeInterp.Get());
         nextAnimState.set_weight(1f - currentAnimState.get_weight());
         if (!changeInterp.IsPlaying())
         {
             currentAnimState.set_enabled(false);
             currentAnimState.set_weight(0f);
             currentAnimState = nextAnimState;
             nextAnimState    = null;
             _rate            = currentAnimState.get_time() / currentAnimState.get_length();
         }
     }
 }
Exemple #4
0
    public void Drop(PortalObject portal_object, Coop_Model_EnemyDefeat model)
    {
        //IL_000f: Unknown result type (might be due to invalid IL or missing references)
        //IL_005b: Unknown result type (might be due to invalid IL or missing references)
        //IL_00cb: Unknown result type (might be due to invalid IL or missing references)
        targetPortal = portal_object;
        defeatModel  = model;
        this.get_gameObject().SetActive(true);
        parameter = MonoBehaviourSingleton <InGameSettingsManager> .I.portal.pointEffect;
        Vector3 position = default(Vector3);

        position._002Ector((float)model.x, 0f, (float)model.z);
        _rigidbody.set_useGravity(false);
        _transform.set_position(position);
        anim.Set(parameter.popHeightAnimTime, 0f, parameter.popHeight, parameter.popHeightAnim, 0f, null);
        anim.Play();
        anim.Update(0f);
        position.y = anim.Get();
        _transform.set_position(position);
        animStep = 0;
    }
Exemple #5
0
 public void Update(GameTime gt)
 {
     if (_pinterp.IsActive)
     {
         _pinterp.Update(gt);
         _tinterp.Update(gt);
         _uinterp.Update(gt);
         _aspectinterp.Update(gt);
         _fieldinterp.Update(gt);
         _nearinterp.Update(gt);
         _farinterp.Update(gt);
     }
 }
    private IEnumerator DoLoad()
    {
        if (onLoadStart != null)
        {
            onLoadStart();
        }
        LoadingQueue load_queue = new LoadingQueue(this);
        LoadObject   lo_image   = load_queue.Load(RESOURCE_CATEGORY.QUEST_LOCATION_IMAGE, ResourceName.GetQuestLocationImage(id), false);

        if (load_queue.IsLoading())
        {
            yield return((object)load_queue.Wait());
        }
        image = ResourceUtility.Realizes(lo_image.loadedObject, MonoBehaviourSingleton <StageManager> .I._transform, 5);
        QuestLocationImage c = image.GetComponent <QuestLocationImage>();

        if (!(c == null))
        {
            int w = uiTexture.width;
            int h = uiTexture.height;
            UIRenderTexture.ToRealSize(ref w, ref h);
            c.Init(w, h);
            Camera cam = image.GetComponent <Camera>();
            if (!(cam == null))
            {
                RenderTexture tex = cam.get_targetTexture();
                if (!(tex == null))
                {
                    uiTexture.mainTexture = tex;
                    FloatInterpolator anim = new FloatInterpolator();
                    anim.Set(0.25f, 0f, 1f, Curves.easeLinear, 0f, null);
                    anim.Play();
                    while (anim.IsPlaying())
                    {
                        yield return((object)null);

                        uiTexture.alpha = anim.Update();
                    }
                    if (onLoadComplete != null)
                    {
                        onLoadComplete();
                    }
                    coroutine = null;
                }
            }
        }
    }
Exemple #7
0
    public override void Update()
    {
        //IL_0007: Unknown result type (might be due to invalid IL or missing references)
        //IL_000c: 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_0027: Unknown result type (might be due to invalid IL or missing references)
        //IL_0054: Unknown result type (might be due to invalid IL or missing references)
        //IL_0059: Unknown result type (might be due to invalid IL or missing references)
        //IL_005e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0066: Unknown result type (might be due to invalid IL or missing references)
        //IL_006b: Unknown result type (might be due to invalid IL or missing references)
        //IL_006c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0076: Unknown result type (might be due to invalid IL or missing references)
        //IL_007b: 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_0087: Unknown result type (might be due to invalid IL or missing references)
        //IL_0088: Unknown result type (might be due to invalid IL or missing references)
        //IL_008d: Unknown result type (might be due to invalid IL or missing references)
        //IL_008e: 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_009a: Unknown result type (might be due to invalid IL or missing references)
        //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
        base.Update();
        if (baseRotation == Quaternion.get_identity())
        {
            baseRotation = base._transform.get_rotation();
        }
        curve.Update(Time.get_deltaTime() * curveTime.Update());
        Quaternion val = Quaternion.AngleAxis(curve.Get(), curveAxis);

        base._transform.set_rotation(baseRotation * val);
        Vector3 forward = Vector3.get_forward();

        forward  = base._transform.get_rotation() * forward;
        forward *= base.speed;
        base._rigidbody.set_velocity(forward);
    }
 private void LateUpdate()
 {
     //IL_0089: Unknown result type (might be due to invalid IL or missing references)
     //IL_00a3: Unknown result type (might be due to invalid IL or missing references)
     if (layer != -1 || id != -1)
     {
         if (alpha != null)
         {
             uiTexture.alpha = alpha.Update();
             if (!alpha.IsPlaying())
             {
                 alpha = null;
             }
         }
         if (linkMainCamera && renderCamera != null)
         {
             modelTransform.set_parent(null);
             renderTransform.set_position(MonoBehaviourSingleton <AppMain> .I.mainCameraTransform.get_position());
             renderTransform.set_rotation(MonoBehaviourSingleton <AppMain> .I.mainCameraTransform.get_rotation());
             modelTransform.set_parent(renderTransform);
             renderCamera.set_fieldOfView(MonoBehaviourSingleton <AppMain> .I.mainCamera.get_fieldOfView());
         }
     }
 }
    private void LateUpdate()
    {
        //IL_0012: Unknown result type (might be due to invalid IL or missing references)
        //IL_006d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0073: Unknown result type (might be due to invalid IL or missing references)
        //IL_0084: Unknown result type (might be due to invalid IL or missing references)
        //IL_0089: Unknown result type (might be due to invalid IL or missing references)
        //IL_0099: Unknown result type (might be due to invalid IL or missing references)
        //IL_009e: Unknown result type (might be due to invalid IL or missing references)
        //IL_00b9: Unknown result type (might be due to invalid IL or missing references)
        //IL_00e2: Unknown result type (might be due to invalid IL or missing references)
        //IL_00e7: Unknown result type (might be due to invalid IL or missing references)
        //IL_013d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0142: Unknown result type (might be due to invalid IL or missing references)
        //IL_0183: Unknown result type (might be due to invalid IL or missing references)
        //IL_018a: Expected O, but got Unknown
        //IL_0190: Unknown result type (might be due to invalid IL or missing references)
        //IL_01cd: Unknown result type (might be due to invalid IL or missing references)
        //IL_01d2: Unknown result type (might be due to invalid IL or missing references)
        //IL_01d6: Unknown result type (might be due to invalid IL or missing references)
        //IL_01db: Unknown result type (might be due to invalid IL or missing references)
        //IL_01e2: Unknown result type (might be due to invalid IL or missing references)
        //IL_01e7: Unknown result type (might be due to invalid IL or missing references)
        //IL_01e8: Unknown result type (might be due to invalid IL or missing references)
        //IL_01ed: Unknown result type (might be due to invalid IL or missing references)
        //IL_020e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0219: Unknown result type (might be due to invalid IL or missing references)
        //IL_022f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0234: Unknown result type (might be due to invalid IL or missing references)
        //IL_0247: Unknown result type (might be due to invalid IL or missing references)
        //IL_024c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0251: Unknown result type (might be due to invalid IL or missing references)
        //IL_0252: Unknown result type (might be due to invalid IL or missing references)
        //IL_0257: Unknown result type (might be due to invalid IL or missing references)
        //IL_0259: Unknown result type (might be due to invalid IL or missing references)
        //IL_025a: Unknown result type (might be due to invalid IL or missing references)
        //IL_025c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0261: Unknown result type (might be due to invalid IL or missing references)
        //IL_0269: Unknown result type (might be due to invalid IL or missing references)
        //IL_0270: Unknown result type (might be due to invalid IL or missing references)
        //IL_0280: Unknown result type (might be due to invalid IL or missing references)
        //IL_0285: Unknown result type (might be due to invalid IL or missing references)
        //IL_029d: Unknown result type (might be due to invalid IL or missing references)
        //IL_02be: Unknown result type (might be due to invalid IL or missing references)
        //IL_02ef: Unknown result type (might be due to invalid IL or missing references)
        if (targetObject == null)
        {
            this.get_gameObject().SetActive(false);
        }
        else
        {
            if (animEventProcessor != null)
            {
                animEventProcessor.Update();
            }
            switch (animationStep)
            {
            case AnimationStep.MOVE_TO_TARGET_POS:
            {
                animationTimer += Time.get_deltaTime();
                Vector3 position2 = Vector3.Lerp(dropPos, targetPos, animationTimer / MOVE_TO_TARGET_TIME);
                float   x         = position2.x;
                Vector3 position3 = _transform.get_position();
                position2._002Ector(x, position3.y, position2.z);
                _transform.set_position(position2);
                if (animationTimer >= MOVE_TO_TARGET_TIME)
                {
                    animationStep = AnimationStep.DROP_TO_GROUND;
                }
                break;
            }

            case AnimationStep.DROP_TO_GROUND:
            {
                AnimatorStateInfo currentAnimatorStateInfo2 = animator.GetCurrentAnimatorStateInfo(0);
                if (currentAnimatorStateInfo2.get_fullPathHash() == endAnimHash)
                {
                    targetPoint   = this.GetComponent <TargetPoint>();
                    animationStep = AnimationStep.NONE;
                }
                if (isRare)
                {
                    SoundManager.PlayOneShotUISE(10000061);
                }
                else
                {
                    SoundManager.PlayOneShotUISE(10000062);
                }
                break;
            }

            case AnimationStep.OPEN:
            {
                AnimatorStateInfo currentAnimatorStateInfo = animator.GetCurrentAnimatorStateInfo(0);
                if (currentAnimatorStateInfo.get_fullPathHash() == openAnimHash && currentAnimatorStateInfo.get_normalizedTime() > 0.99f)
                {
                    animationStep = AnimationStep.NONE;
                    if (effect != null)
                    {
                        EffectManager.ReleaseEffect(effect.get_gameObject(), true, false);
                    }
                    this.get_gameObject().SetActive(false);
                }
                break;
            }

            case AnimationStep.GET:
                if (distanceAnim.IsPlaying())
                {
                    moveTime += Time.get_deltaTime();
                    Bounds  bounds    = targetObject._collider.get_bounds();
                    Vector3 center    = bounds.get_center();
                    Vector3 val       = _transform.get_position() - center;
                    float   magnitude = val.get_magnitude();
                    if (distance < magnitude)
                    {
                        distance = magnitude;
                    }
                    val = val.get_normalized() * distance * (1f - distanceAnim.Update());
                    Vector3 val2     = Quaternion.AngleAxis(moveTime * speedAnim.Update(), Vector3.get_up()) * val;
                    Vector3 position = center + val2;
                    _transform.set_position(position);
                    Vector3 localScale = Vector3.get_one() * scaleAnim.Update();
                    if (distanceAnim.IsPlaying())
                    {
                        _transform.set_localScale(localScale);
                    }
                }
                else
                {
                    Transform val3 = EffectManager.GetEffect("ef_btl_mpdrop_01", null);
                    val3.set_position(_transform.get_position());
                    rymFX component = val3.GetComponent <rymFX>();
                    if (component != null)
                    {
                        component.AutoDelete = true;
                        component.LoopEnd    = true;
                    }
                    this.get_gameObject().SetActive(false);
                }
                break;
            }
        }
    }
Exemple #10
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();
    }