예제 #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();
    }
 public TransformInterpolator Rotate(float _time, Vector3 target, AnimationCurve ease_curve = null, Vector3 add_value = default(Vector3), AnimationCurve add_curve = null, bool lerp_angle = true)
 {
     //IL_005a: Unknown result type (might be due to invalid IL or missing references)
     //IL_005f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0061: 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)
     if (_time > 0f)
     {
         if (rotate == null || rotateAngleMode != lerp_angle)
         {
             rotateAngleMode = lerp_angle;
             if (lerp_angle)
             {
                 rotate = new AngleVector3Interpolator();
             }
             else
             {
                 rotate = new Vector3Interpolator();
             }
         }
         rotate.Set(_time, _transform.get_localEulerAngles(), target, ease_curve, add_value, add_curve);
         rotate.Play();
     }
     else
     {
         rotate = null;
         _transform.set_localEulerAngles(target);
     }
     return(this);
 }
예제 #3
0
 public void MovePos(bool stop, Vector3 pos, float time)
 {
     //IL_000d: Unknown result type (might be due to invalid IL or missing references)
     //IL_0012: 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)
     anim.Set(time, _transform.get_localPosition(), pos, null, default(Vector3), null);
     anim.Play();
     isStop = stop;
 }
예제 #4
0
    public void SetStandPosition(string _dir, bool doesSetImmidiate = false)
    {
        //IL_000b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0010: Unknown result type (might be due to invalid IL or missing references)
        //IL_002f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0034: Unknown result type (might be due to invalid IL or missing references)
        //IL_0139: Unknown result type (might be due to invalid IL or missing references)
        //IL_0150: Unknown result type (might be due to invalid IL or missing references)
        //IL_0161: 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)
        basePos = MonoBehaviourSingleton <OutGameSettingsManager> .I.storyScene.leftStandPos;
        baseRot = new Vector3(0f, MonoBehaviourSingleton <OutGameSettingsManager> .I.storyScene.leftStandRot, 0f);
        dir     = StoryDirector.POS.LEFT;
        switch (_dir)
        {
        case "R":
        case "UR":
            basePos.x = 0f - basePos.x;
            baseRot.y = 0f - baseRot.y;
            dir       = StoryDirector.POS.RIGHT;
            break;

        case "C":
        case "UC":
            basePos.x = 0f;
            baseRot.y = 180f;
            dir       = StoryDirector.POS.CENTER;
            break;
        }
        if (_dir == "UR" || _dir == "UC" || _dir == "UL")
        {
            basePos.y += MonoBehaviourSingleton <OutGameSettingsManager> .I.storyScene.leftStandUpOffset;
        }
        animPos.Set(basePos);
        if (doesSetImmidiate)
        {
            model.set_localPosition(basePos);
        }
        animRot.Set(Quaternion.Euler(baseRot));
    }
 public TransformInterpolator Translate(float _time, Vector3 target, AnimationCurve ease_curve = null, Vector3 add_value = default(Vector3), AnimationCurve add_curve = null)
 {
     //IL_002e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0033: Unknown result type (might be due to invalid IL or missing references)
     //IL_0035: 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)
     if (_time > 0f)
     {
         if (translate == null)
         {
             translate = new Vector3Interpolator();
         }
         translate.Set(_time, _transform.get_localPosition(), target, ease_curve, add_value, add_curve);
         translate.Play();
     }
     else
     {
         translate = null;
         _transform.set_localPosition(target);
     }
     return(this);
 }
    private IEnumerator LoadScriptResources()
    {
        Transform camera_t = MonoBehaviourSingleton <AppMain> .I.mainCameraTransform;

        initCameraPos = camera_t.get_position();
        cameraPosAnim.Set(initCameraPos);
        LoadingQueue load_queue = new LoadingQueue(this);

        for (int cmd_row = 0; cmd_row < scriptCommands.Count; cmd_row++)
        {
            string cmd = scriptCommands[cmd_row].cmd;
            string p4  = scriptCommands[cmd_row].p0;
            string p3  = scriptCommands[cmd_row].p1;
            string p2  = scriptCommands[cmd_row].p2;
            switch (cmd)
            {
            case "EFF_SHOW":
            {
                LoadObject load_obj = load_queue.LoadEffect(RESOURCE_CATEGORY.EFFECT_ACTION, p4, false);
                effectPrefabs.Add(p4, load_obj);
                if (effectRenderTex == null)
                {
                    effectRenderTex = UIRenderTexture.Get(effectTex, -1f, true, 1);
                    effectRenderTex.Enable(0.25f);
                }
                break;
            }

            case "SE_PLAY":
                try
                {
                    int se_id = int.Parse(p4);
                    load_queue.CacheSE(se_id, null);
                }
                catch
                {
                    Log.Error(LOG.EXCEPTION, "{0}コマンドのSEIDに整数ではない値が指定されています。", cmd);
                }
                break;

            case "MSG":
                if (!string.IsNullOrEmpty(p2))
                {
                    try
                    {
                        int voice_id = int.Parse(p2);
                        load_queue.CacheVoice(voice_id, null);
                    }
                    catch
                    {
                        Log.Error(LOG.EXCEPTION, "{0}コマンドのボイスIDに整数ではない値が指定されています。", cmd);
                    }
                }
                break;

            case "CHR_LOAD":
            {
                int id = -1;
                for (int i = 0; (float)i < 4f; i++)
                {
                    if (charas.Find((StoryCharacter o) => o.id == ((_003CLoadScriptResources_003Ec__IteratorC1) /*Error near IL_02d5: stateMachine*/)._003Ci_003E__11) == null)
                    {
                        id = i;
                        break;
                    }
                }
                if (id != -1)
                {
                    UITexture ui_tex = eventReceiver.GetModelUITexture(id);
                    if (ui_tex != null)
                    {
                        StoryCharacter chara = StoryCharacter.Initialize(id, ui_tex, p4, p3, p2);
                        if (chara != null)
                        {
                            charas.Add(chara);
                        }
                    }
                }
                break;
            }
            }
        }
        while (MonoBehaviourSingleton <ResourceManager> .I.isLoading || InstantiateManager.isBusy)
        {
            yield return((object)null);
        }
        isLoading = false;
    }
예제 #7
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();
        }
    }
예제 #8
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();
    }