public void Delete(bool is_get)
 {
     //IL_003c: 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_0044: Unknown result type (might be due to invalid IL or missing references)
     //IL_004f: Unknown result type (might be due to invalid IL or missing references)
     //IL_014d: Unknown result type (might be due to invalid IL or missing references)
     if (!isDelete)
     {
         isDelete = true;
         isGet    = is_get;
         if (is_get)
         {
             targetObject = MonoBehaviourSingleton <StageObjectManager> .I.self;
             Bounds bounds = targetObject._collider.get_bounds();
             distance = Vector3.Distance(bounds.get_center(), _transform.get_position());
             distanceAnim.Set(parameter.getAnimTime, 0f, 1f, parameter.distanceAnim, 0f, null);
             distanceAnim.Play();
             speedAnim.Set(parameter.getAnimTime, 0f, parameter.rotateSpeed, parameter.rotateSpeedAnim, 0f, null);
             speedAnim.Play();
             scaleAnim.Set(parameter.getAnimTime, 0f, 1f, parameter.scaleAnim, 0f, null);
             scaleAnim.Play();
             moveTime      = 0f;
             animationStep = AnimationStep.OPEN;
             announceInfo  = MonoBehaviourSingleton <InGameManager> .I.CreateDropAnnounceInfoList(deliveryInfo, itemInfo, true);
         }
         else
         {
             this.get_gameObject().SetActive(false);
         }
     }
 }
Exemplo n.º 2
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;
    }
Exemplo n.º 3
0
 public override void Initialize(BulletData bullet, SkillInfo.SkillParam _skillInfoParam, Vector3 pos, Quaternion rot)
 {
     //IL_0003: Unknown result type (might be due to invalid IL or missing references)
     //IL_0004: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b2: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b7: Unknown result type (might be due to invalid IL or missing references)
     base.Initialize(bullet, _skillInfoParam, pos, rot);
     curve          = new FloatInterpolator();
     curve.loopType = Interpolator.LOOP.REPETE;
     curve.Set(bullet.dataCurve.loopTime, 0f, bullet.dataCurve.curveAngle, bullet.dataCurve.curveAnim, 0f, null);
     curve.Play();
     curveTime = new FloatInterpolator();
     curveTime.Set(bullet.data.appearTime, 1f, 0f, bullet.dataCurve.timeAnim, 0f, null);
     curveTime.Play();
     curveAxis = bullet.dataCurve.curveAxis;
 }
    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;
                }
            }
        }
    }
 public void ChangeRail(string anim_clip_name, float time, float rate = -1f)
 {
     //IL_0008: Unknown result type (might be due to invalid IL or missing references)
     //IL_000d: Expected O, but got Unknown
     nextAnimState = _animation.get_Item(anim_clip_name);
     if (!(nextAnimState == null) && !(nextAnimState == currentAnimState))
     {
         nextAnimState.set_weight(1f - currentAnimState.get_weight());
         nextAnimState.set_enabled(true);
         if (rate >= 0f)
         {
             nextAnimState.set_time(nextAnimState.get_length() * rate);
         }
         changeInterp.Set(time, currentAnimState.get_weight(), 0f, null, 0f, null);
         changeInterp.Play();
     }
 }
    private IEnumerator DoFadeOutDisable(float fadeTime)
    {
        uiTexture.alpha = 1f;
        alpha           = new FloatInterpolator();
        alpha.Set(fadeTime, 1f, 0f, Curves.easeLinear, 0f, null);
        alpha.Play();
        while (alpha.IsPlaying())
        {
            yield return((object)null);

            if (alpha == null)
            {
                break;
            }
        }
        Disable();
    }
Exemplo n.º 7
0
    protected void Drop(int _rarity, Vector3 pos)
    {
        //IL_0096: Unknown result type (might be due to invalid IL or missing references)
        //IL_00a6: Unknown result type (might be due to invalid IL or missing references)
        //IL_00ab: 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)
        //IL_00d7: Unknown result type (might be due to invalid IL or missing references)
        //IL_00dc: Unknown result type (might be due to invalid IL or missing references)
        //IL_00dd: 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_00ea: Unknown result type (might be due to invalid IL or missing references)
        //IL_00f6: Unknown result type (might be due to invalid IL or missing references)
        //IL_00fb: Unknown result type (might be due to invalid IL or missing references)
        //IL_00fd: Unknown result type (might be due to invalid IL or missing references)
        //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
        //IL_00ff: Unknown result type (might be due to invalid IL or missing references)
        //IL_0104: Unknown result type (might be due to invalid IL or missing references)
        //IL_010a: Unknown result type (might be due to invalid IL or missing references)
        //IL_010b: Unknown result type (might be due to invalid IL or missing references)
        rarity   = _rarity;
        animStep = 0;
        animTime = 0f;
        isRight  = true;
        anim.Set(parameter.popAnimTime, 0f, parameter.popHeight, parameter.popAnim, 0f, null);
        anim.Play();
        anim.Update(0f);
        pos.y = anim.Get() + parameter.defHeight;
        _transform.set_position(pos);
        Vector3 val = MonoBehaviourSingleton <InGameCameraManager> .I.cameraTransform.get_right();

        val.y = 0f;
        val.Normalize();
        if (Random.Range(0, 10) > 5)
        {
            val     = Quaternion.AngleAxis(180f, Vector3.get_up()) * val;
            isRight = false;
        }
        val      *= parameter.popSpeed;
        targetPos = pos + val;
        dropPos   = pos;
    }
Exemplo n.º 8
0
    private void MoveCamera(VIEW_TYPE type_from, VIEW_TYPE type_to, VIEW_MODE mode_from, VIEW_MODE mode_to)
    {
        //IL_0015: Unknown result type (might be due to invalid IL or missing references)
        //IL_001a: Unknown result type (might be due to invalid IL or missing references)
        //IL_0028: Unknown result type (might be due to invalid IL or missing references)
        //IL_002d: Unknown result type (might be due to invalid IL or missing references)
        //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_00e3: Unknown result type (might be due to invalid IL or missing references)
        //IL_00e8: Unknown result type (might be due to invalid IL or missing references)
        //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
        //IL_00ff: Unknown result type (might be due to invalid IL or missing references)
        //IL_0101: Unknown result type (might be due to invalid IL or missing references)
        //IL_0106: Unknown result type (might be due to invalid IL or missing references)
        //IL_0108: Unknown result type (might be due to invalid IL or missing references)
        //IL_010d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0117: Unknown result type (might be due to invalid IL or missing references)
        //IL_011c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0129: Unknown result type (might be due to invalid IL or missing references)
        //IL_012e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0133: Unknown result type (might be due to invalid IL or missing references)
        //IL_0138: 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_0143: Unknown result type (might be due to invalid IL or missing references)
        //IL_0144: Unknown result type (might be due to invalid IL or missing references)
        //IL_0145: Unknown result type (might be due to invalid IL or missing references)
        //IL_014a: Unknown result type (might be due to invalid IL or missing references)
        //IL_014b: Unknown result type (might be due to invalid IL or missing references)
        //IL_014d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0155: Unknown result type (might be due to invalid IL or missing references)
        //IL_015a: Unknown result type (might be due to invalid IL or missing references)
        //IL_015f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0165: Unknown result type (might be due to invalid IL or missing references)
        //IL_0166: Unknown result type (might be due to invalid IL or missing references)
        //IL_016b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0170: Unknown result type (might be due to invalid IL or missing references)
        //IL_0172: Unknown result type (might be due to invalid IL or missing references)
        //IL_0174: Unknown result type (might be due to invalid IL or missing references)
        //IL_0181: Unknown result type (might be due to invalid IL or missing references)
        //IL_0186: Unknown result type (might be due to invalid IL or missing references)
        //IL_01a0: Unknown result type (might be due to invalid IL or missing references)
        //IL_01a5: Unknown result type (might be due to invalid IL or missing references)
        //IL_01aa: Unknown result type (might be due to invalid IL or missing references)
        //IL_01ab: Unknown result type (might be due to invalid IL or missing references)
        //IL_01c2: Unknown result type (might be due to invalid IL or missing references)
        //IL_01c7: Unknown result type (might be due to invalid IL or missing references)
        //IL_01cc: Unknown result type (might be due to invalid IL or missing references)
        //IL_01ce: Unknown result type (might be due to invalid IL or missing references)
        //IL_01d0: Unknown result type (might be due to invalid IL or missing references)
        //IL_01d1: 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_01fb: Unknown result type (might be due to invalid IL or missing references)
        //IL_0200: Unknown result type (might be due to invalid IL or missing references)
        //IL_0203: Unknown result type (might be due to invalid IL or missing references)
        //IL_0208: Unknown result type (might be due to invalid IL or missing references)
        //IL_020d: Unknown result type (might be due to invalid IL or missing references)
        //IL_022b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0230: Unknown result type (might be due to invalid IL or missing references)
        //IL_029c: Unknown result type (might be due to invalid IL or missing references)
        //IL_02a1: Unknown result type (might be due to invalid IL or missing references)
        //IL_02a5: Unknown result type (might be due to invalid IL or missing references)
        //IL_02ab: Unknown result type (might be due to invalid IL or missing references)
        //IL_02cc: Unknown result type (might be due to invalid IL or missing references)
        //IL_02d1: Unknown result type (might be due to invalid IL or missing references)
        //IL_02d5: Unknown result type (might be due to invalid IL or missing references)
        //IL_02db: Unknown result type (might be due to invalid IL or missing references)
        //IL_034e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0353: Unknown result type (might be due to invalid IL or missing references)
        //IL_0358: Unknown result type (might be due to invalid IL or missing references)
        //IL_035c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0362: Unknown result type (might be due to invalid IL or missing references)
        Quaternion val = Quaternion.Euler(0f, parameter.playerRot, 0f);
        Vector3    val2;
        Quaternion end_value;
        float      end_value2;

        if (type_to == VIEW_TYPE.STATUS)
        {
            Vector3 playerPos = parameter.playerPos;
            if (mode_to == VIEW_MODE.AVATAR)
            {
                val = Quaternion.Euler(0f, parameter.avatarPlayerRot, 0f);
            }
            if (equipSetData != null)
            {
                OutGameSettingsManager.StatusScene.EquipViewInfo equipViewInfo = null;
                if (equipInfo != null)
                {
                    equipViewInfo = parameter.GetEquipViewInfo(equipInfo.tableData.type.ToString());
                }
                if (equipViewInfo == null)
                {
                    equipViewInfo = parameter.GetEquipViewInfo(EQUIP_SLOT.ToType((viewMode != VIEW_MODE.AVATAR) ? equipSetData.index : EQUIP_SLOT.AvatatToEquip(equipSetData.index)).ToString());
                }
                Vector3 cameraTargetPos = equipViewInfo.cameraTargetPos;
                if (mode_to == VIEW_MODE.AVATAR)
                {
                    cameraTargetPos.x = 0f;
                }
                playerPos = val * cameraTargetPos + playerPos;
                val2      = Quaternion.AngleAxis(0f - equipViewInfo.cameraXAngle, Vector3.get_right()) * Quaternion.AngleAxis(0f - equipViewInfo.cameraYAngle, Vector3.get_up()) * Vector3.get_forward();
                val2      = val * val2;
                val2      = playerPos + val2 * equipViewInfo.cameraDistance;
            }
            else
            {
                Vector3 val3 = val * Vector3.get_forward();
                val2       = playerPos + val3 * parameter.cameraTargetDistance + new Vector3(0f, parameter.cameraHeight, 0f);
                playerPos += new Vector3(0f, parameter.cameraTargetHeight, 0f);
            }
            end_value  = Quaternion.LookRotation(playerPos - val2);
            end_value2 = parameter.cameraFieldOfView;
        }
        else
        {
            OutGameSettingsManager.SmithScene smithScene = MonoBehaviourSingleton <OutGameSettingsManager> .I.smithScene;
            val2       = smithScene.createCameraPos;
            end_value  = Quaternion.Euler(smithScene.createCameraRot);
            end_value2 = smithScene.createCameraFieldOfView;
            val        = Quaternion.Euler(0f, parameter.playerRot, 0f);
        }
        float num = parameter.cameraMoveTime;

        if (MonoBehaviourSingleton <TransitionManager> .I.isTransing && !MonoBehaviourSingleton <TransitionManager> .I.isChanging)
        {
            num = 0f;
        }
        cameraTurningMode = (num > 0f && type_from == type_to && type_from == VIEW_TYPE.STATUS && mode_from != mode_to);
        cameraPosAnim.Set(num, targetCameraTransform.get_position(), val2, null, default(Vector3), null);
        cameraPosAnim.Play();
        cameraRotAnim.Set(num, targetCameraTransform.get_rotation(), end_value, null, default(Quaternion), null);
        cameraRotAnim.Play();
        cameraFovAnim.Set(num, targetCamera.get_fieldOfView(), end_value2, null, 0f, null);
        cameraFovAnim.Play();
        if (playerLoader != null && !playerLoader.isLoading)
        {
            playerRotAnim.Set(num * 1.25f, playerLoader.get_transform().get_rotation(), val, null, default(Quaternion), null);
            playerRotAnim.Play();
        }
    }
Exemplo n.º 9
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();
    }
 public void Enable(float fadeTime = 0.25f)
 {
     //IL_0037: Unknown result type (might be due to invalid IL or missing references)
     //IL_007c: Unknown result type (might be due to invalid IL or missing references)
     //IL_015b: Unknown result type (might be due to invalid IL or missing references)
     //IL_01c6: 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)
     Init();
     if ((layer != -1 || id != -1) && !(renderCamera != null))
     {
         renderCamera = renderTransform.get_gameObject().AddComponent <Camera>();
         renderCamera.set_depth(50f);
         renderCamera.set_clearFlags(2);
         renderCamera.set_backgroundColor(new Color(0f, 0f, 0f, 0f));
         renderCamera.set_renderingPath(1);
         renderCamera.set_cullingMask(1 << renderLayer);
         if (orthographicSize == 0f)
         {
             if (fov <= 0f)
             {
                 fov = 10f;
             }
             renderCamera.set_fieldOfView(fov);
         }
         else
         {
             renderCamera.set_orthographic(true);
             renderCamera.set_orthographicSize(orthographicSize);
         }
         if (nearClipPlane == -1f)
         {
             nearClipPlane = 0.01f;
         }
         renderCamera.set_nearClipPlane(nearClipPlane);
         renderCamera.set_farClipPlane(farClipPlane);
         if (postEffectFilter != null)
         {
             postEffector = renderTransform.get_gameObject().AddComponent <PostEffector>();
             postEffector.SetFilter(postEffectFilter);
         }
         if (uiTexture != null)
         {
             texW = uiTexture.width;
             texH = uiTexture.height;
             if (ToRealSize(ref texW, ref texH))
             {
                 filterMode = 1;
             }
             else
             {
                 filterMode = 0;
             }
         }
         else
         {
             texW = (texH = Mathf.Min(Screen.get_width(), Screen.get_height()));
         }
         CreateRenderTexture();
         uiTexture.alpha = 0f;
         alpha           = new FloatInterpolator();
         alpha.Set(fadeTime, 0f, 1f, Curves.easeLinear, 0f, null);
         alpha.Play();
         Nexus6CrashWorkaround.Apply(renderCamera);
     }
 }