private AnimEventShot CreateExplosion()
    {
        //IL_0048: 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_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_006c: 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)
        BulletData bulletData = m_atkInfo.bulletData;

        if (bulletData == null)
        {
            return(null);
        }
        BulletData.BulletMine dataMine = bulletData.dataMine;
        if (bulletData == null)
        {
            return(null);
        }
        if (m_attacker == null)
        {
            return(null);
        }
        Quaternion    rotation      = m_cachedTransform.get_rotation();
        Vector3       position      = m_cachedTransform.get_position();
        AnimEventShot animEventShot = AnimEventShot.CreateByExternalBulletData(dataMine.explodeBullet, m_attacker, m_atkInfo, position, rotation, null, Player.ATTACK_MODE.NONE, null);

        if (animEventShot == null)
        {
            return(null);
        }
        return(animEventShot);
    }
Exemplo n.º 2
0
    private AnimEventShot CreateBullet()
    {
        //IL_0042: Unknown result type (might be due to invalid IL or missing references)
        //IL_0047: Unknown result type (might be due to invalid IL or missing references)
        //IL_004e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0053: 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_0067: Unknown result type (might be due to invalid IL or missing references)
        BulletData bulletData = m_atkInfo.bulletData;

        if (bulletData == null)
        {
            return(null);
        }
        BulletData.BulletDig dataDig = bulletData.dataDig;
        if (dataDig == null)
        {
            return(null);
        }
        if (m_attacker == null)
        {
            return(null);
        }
        Quaternion    rotation      = m_cachedTransform.get_rotation();
        Vector3       position      = m_cachedTransform.get_position();
        AnimEventShot animEventShot = AnimEventShot.CreateByExternalBulletData(dataDig.flyOutBullet, m_attacker, m_atkInfo, position, rotation, null, Player.ATTACK_MODE.NONE, null);

        if (animEventShot == null)
        {
            Log.Error("Failed to create AnimEventShot for Dig!!");
            return(null);
        }
        m_isCreatedBullet = true;
        return(animEventShot);
    }
    private AnimEventShot CreateBullet(int index)
    {
        //IL_006f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0074: 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_0080: 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)
        if (m_trackingData == null)
        {
            return(null);
        }
        if (m_attacker == null)
        {
            return(null);
        }
        if (m_atkInfoNames == null || m_atkInfoNames.Length <= 0)
        {
            return(null);
        }
        if (m_atkInfoNames.Length < index)
        {
            return(null);
        }
        AttackInfo attackInfo = m_attacker.FindAttackInfo(m_atkInfoNames[index], true, false);

        if (attackInfo == null)
        {
            return(null);
        }
        Quaternion rotation = m_cachedTransform.get_rotation();
        Vector3    position = m_cachedTransform.get_position();

        if (m_attackerPlayer != null)
        {
            IsReplaceSkill = true;
        }
        AtkAttribute atk = m_exAtkList[index];

        if (atk == null)
        {
            atk = new AtkAttribute();
            m_attacker.GetAtk(attackInfo as AttackHitInfo, ref atk);
            m_exAtkList[index] = atk;
        }
        AnimEventShot animEventShot = AnimEventShot.CreateByExternalBulletData(m_trackingData.emissionBullet, m_attacker, attackInfo, position, rotation, atk, m_attackMode, null);

        if (animEventShot == null)
        {
            Log.Error("Failed to create AnimEventShot for tracking bullet!");
            return(null);
        }
        if (m_attackerPlayer != null)
        {
            IsReplaceSkill = false;
        }
        return(animEventShot);
    }
    public AnimEventShot CreateReflectBullet()
    {
        //IL_004e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0053: 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_0089: 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_00a7: Unknown result type (might be due to invalid IL or missing references)
        //IL_00e4: Unknown result type (might be due to invalid IL or missing references)
        //IL_00ef: Unknown result type (might be due to invalid IL or missing references)
        //IL_00f4: Unknown result type (might be due to invalid IL or missing references)
        //IL_00f9: Unknown result type (might be due to invalid IL or missing references)
        //IL_0126: Unknown result type (might be due to invalid IL or missing references)
        //IL_0131: Unknown result type (might be due to invalid IL or missing references)
        //IL_0136: Unknown result type (might be due to invalid IL or missing references)
        //IL_013b: Unknown result type (might be due to invalid IL or missing references)
        BulletData bulletData = m_atkInfo.bulletData;

        if (bulletData == null)
        {
            return(null);
        }
        if (m_attacker == null)
        {
            return(null);
        }
        if (!MonoBehaviourSingleton <StageObjectManager> .IsValid() || MonoBehaviourSingleton <StageObjectManager> .I.playerList == null)
        {
            return(null);
        }
        Quaternion rot = m_cachedTransform.get_rotation();

        if (IsGetTarget(m_cachedTransform.get_position(), ref rot))
        {
            AnimEventShot animEventShot = AnimEventShot.CreateByExternalBulletData(m_mineData.actionBullet, m_attacker, m_atkInfo, m_cachedTransform.get_position(), rot, null, Player.ATTACK_MODE.NONE, null);
            if (animEventShot == null)
            {
                return(null);
            }
            ReflectBulletCondition reflectBulletCondition = animEventShot.get_gameObject().AddComponent <ReflectBulletCondition>();
            reflectBulletCondition.actionMineID = objId;
            if (!string.IsNullOrEmpty(m_mineData.actionEffectName1))
            {
                EffectManager.OneShot(m_mineData.actionEffectName1, m_cachedTransform.get_position() + m_mineData.actionEffectOffset, rot, false);
            }
            if (!string.IsNullOrEmpty(m_mineData.actionEffectName2))
            {
                EffectManager.OneShot(m_mineData.actionEffectName2, m_cachedTransform.get_position() + m_mineData.actionEffectOffset, rot, false);
            }
            return(animEventShot);
        }
        return(null);
    }
Exemplo n.º 5
0
    private AnimEventShot CreateBullet()
    {
        //IL_0042: Unknown result type (might be due to invalid IL or missing references)
        //IL_0047: Unknown result type (might be due to invalid IL or missing references)
        //IL_004e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0053: Unknown result type (might be due to invalid IL or missing references)
        //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_0064: Unknown result type (might be due to invalid IL or missing references)
        //IL_0069: 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_007d: Unknown result type (might be due to invalid IL or missing references)
        BulletData bulletData = m_atkInfo.bulletData;

        if (bulletData == null)
        {
            return(null);
        }
        BulletData.BulletFunnel dataFunnel = bulletData.dataFunnel;
        if (dataFunnel == null)
        {
            return(null);
        }
        if (m_attacker == null)
        {
            return(null);
        }
        Quaternion    rotation      = m_cachedTransform.get_rotation();
        Vector3       pos           = m_cachedTransform.get_position() + rotation * m_funnelData.offsetPosition;
        AnimEventShot animEventShot = AnimEventShot.CreateByExternalBulletData(dataFunnel.bitBullet, m_attacker, m_atkInfo, pos, rotation, m_exAtk, m_attackMode, m_skillParam);

        if (animEventShot == null)
        {
            Log.Error("Failed to create AnimEventShot for Funnel!!");
            return(null);
        }
        return(animEventShot);
    }