Ejemplo n.º 1
0
 public virtual void OnChangeEnableControll(bool enable)
 {
     if (!enable && character.actionID == Character.ACTION_ID.MOVE)
     {
         character.ActIdle(false, -1f);
     }
 }
    public void StartBattleEndDirection(GameObject legend, GameObject title_ui, Action onComplete)
    {
        //IL_0013: Unknown result type (might be due to invalid IL or missing references)
        //IL_0018: Expected O, but got Unknown
        //IL_007f: 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)
        //IL_0150: 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_022e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0233: Unknown result type (might be due to invalid IL or missing references)
        //IL_0243: Unknown result type (might be due to invalid IL or missing references)
        //IL_0248: Unknown result type (might be due to invalid IL or missing references)
        //IL_0258: Unknown result type (might be due to invalid IL or missing references)
        //IL_025d: Unknown result type (might be due to invalid IL or missing references)
        //IL_029a: Unknown result type (might be due to invalid IL or missing references)
        //IL_02ae: Unknown result type (might be due to invalid IL or missing references)
        //IL_02cb: Unknown result type (might be due to invalid IL or missing references)
        titleUIPrefab = title_ui;
        originalPlayerAnimatorController = player.animator.get_runtimeAnimatorController();
        player._collider.set_enabled(false);
        player.animator.set_runtimeAnimatorController(playerAnimatorController);
        player.animator.set_cullingMode(0);
        player.animator.Rebind();
        player._transform.set_position(new Vector3(0f, 0f, 26f));
        player._transform.set_eulerAngles(new Vector3(0f, 180f, 0f));
        player._rigidbody.set_constraints(126);
        player.ActIdle(false, -1f);
        player.PlayMotion(PLAYER_ANIM_EXIT_CUT_SCENE_START_NAME, -1f);
        legend.SetActive(true);
        legendDragon = legend;
        Animator component = legend.GetComponent <Animator>();

        component.set_runtimeAnimatorController(legendDragonAnimController);
        component.Play(LEGEND_DRAGON_ANIM_STATE);
        for (int i = 0; i < boss.colliders.Length; i++)
        {
            boss.colliders[i].set_enabled(false);
        }
        boss._transform.set_position(Vector3.get_zero());
        boss._transform.set_eulerAngles(Vector3.get_zero());
        boss._rigidbody.set_constraints(126);
        boss.ActIdle(false, -1f);
        boss.animator.set_cullingMode(0);
        boss.animator.Rebind();
        boss.PlayMotion(BOSS_ANIM_EXIT_CUT_SCENE_STATE_NAME, -1f);
        bossShadow.setAnimTransform(boss.hip);
        if (enemyController == null)
        {
            enemyController = (boss.controller as EnemyController);
        }
        enemyController.set_enabled(false);
        originalFov = MonoBehaviourSingleton <AppMain> .I.mainCamera.get_fieldOfView();

        cameraAnim.get_transform().set_position(Vector3.get_zero());
        cameraAnim.get_transform().set_rotation(Quaternion.get_identity());
        cameraAnim.get_transform().set_localScale(Vector3.get_zero());
        cameraAnim.set_cullingType(0);
        cameraAnim.Play(BATTLE_EXIT_CAMERA_CLIP_NAME);
        cameraAnim.Sample();
        MonoBehaviourSingleton <AppMain> .I.mainCameraTransform.set_position(CAMERA_END_POSITION);

        MonoBehaviourSingleton <AppMain> .I.mainCameraTransform.set_rotation(CAMERA_END_ROTAION);

        MonoBehaviourSingleton <InGameCameraManager> .I.set_enabled(false);

        this.StartCoroutine(DoBattleEndDirection(onComplete));
    }