Example #1
0
    public void CreateEffect(BulletData.BulletBase bulletBase)
    {
        //IL_002c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0038: 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_0049: Unknown result type (might be due to invalid IL or missing references)
        //IL_0055: Unknown result type (might be due to invalid IL or missing references)
        //IL_005a: Expected O, but got Unknown
        Transform effect = EffectManager.GetEffect(bulletBase.effectName, null);

        if (effect == null)
        {
            Log.Error("Failed to create effect for LaserAttackObject!!");
        }
        else
        {
            effect.set_parent(this.get_transform());
            effect.set_localPosition(bulletBase.dispOffset);
            effect.set_localRotation(Quaternion.Euler(bulletBase.dispRotation));
            m_effectLaser = effect.get_gameObject();
            if (Object.op_Implicit(m_effectLaser.GetComponent <Animator>()))
            {
                m_effectAnimator = m_effectLaser.GetComponent <Animator>();
            }
            if (Object.op_Implicit(this.GetComponent <CapsuleCollider>()))
            {
                m_capCollider = this.GetComponent <CapsuleCollider>();
            }
        }
    }
Example #2
0
 public void CacheBulletDataUseResource(BulletData bulletData, Player player = null)
 {
     if (!(bulletData == null))
     {
         BulletData.BulletBase data = bulletData.data;
         string effectName          = data.GetEffectName(player);
         if (!effectName.IsNullOrWhiteSpace())
         {
             CacheEffect(RESOURCE_CATEGORY.EFFECT_ACTION, effectName);
         }
         CacheEffect(RESOURCE_CATEGORY.EFFECT_ACTION, data.landHiteffectName);
         if (data.endBullet != null)
         {
             CacheBulletDataUseResource(data.endBullet, null);
         }
         BulletData.BulletFunnel dataFunnel = bulletData.dataFunnel;
         if (dataFunnel != null && dataFunnel.bitBullet != null)
         {
             CacheBulletDataUseResource(dataFunnel.bitBullet, null);
         }
         BulletData.BulletMine dataMine = bulletData.dataMine;
         if (dataMine != null && dataMine.explodeBullet != null)
         {
             CacheBulletDataUseResource(dataMine.explodeBullet, null);
         }
         BulletData.BulletTracking dataTracking = bulletData.dataTracking;
         if (dataTracking != null && dataTracking.emissionBullet != null)
         {
             CacheBulletDataUseResource(dataTracking.emissionBullet, null);
         }
         BulletData.BulletUndead dataUndead = bulletData.dataUndead;
         if (dataUndead != null && dataUndead.closeBullet != null)
         {
             CacheBulletDataUseResource(dataUndead.closeBullet, null);
         }
         BulletData.BulletDig dataDig = bulletData.dataDig;
         if (dataDig != null && dataDig.flyOutBullet != null)
         {
             CacheBulletDataUseResource(dataDig.flyOutBullet, null);
         }
         BulletData.BulletActionMine dataActionMine = bulletData.dataActionMine;
         if (dataActionMine != null && dataActionMine.explodeBullet != null && dataActionMine.actionBullet != null)
         {
             CacheBulletDataUseResource(dataActionMine.explodeBullet, null);
             CacheBulletDataUseResource(dataActionMine.actionBullet, null);
             CacheEffect(RESOURCE_CATEGORY.EFFECT_ACTION, dataActionMine.appearEffectName);
             CacheEffect(RESOURCE_CATEGORY.EFFECT_ACTION, dataActionMine.actionEffectName1);
             CacheEffect(RESOURCE_CATEGORY.EFFECT_ACTION, dataActionMine.actionEffectName2);
         }
     }
 }
Example #3
0
 public void Initialize(InitParamCannonBeam initParam)
 {
     //IL_0066: Unknown result type (might be due to invalid IL or missing references)
     //IL_006b: Expected O, but got Unknown
     //IL_00ac: Unknown result type (might be due to invalid IL or missing references)
     //IL_00bd: Unknown result type (might be due to invalid IL or missing references)
     //IL_00ce: 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_011b: Unknown result type (might be due to invalid IL or missing references)
     //IL_0120: Expected O, but got Unknown
     //IL_013f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0141: Unknown result type (might be due to invalid IL or missing references)
     if (initParam.atkInfo != null)
     {
         m_atkInfo = initParam.atkInfo;
         AttackHitInfo attackHitInfo = m_atkInfo as AttackHitInfo;
         if (attackHitInfo != null)
         {
             attackHitInfo.enableIdentityCheck = false;
         }
         BulletData bulletData = m_atkInfo.bulletData;
         if (!(bulletData == null))
         {
             BulletData.BulletBase data = bulletData.data;
             if (data != null)
             {
                 m_attacker        = initParam.attacker;
                 m_cachedTransform = this.get_transform();
                 m_cachedTransform.set_parent((!MonoBehaviourSingleton <StageObjectManager> .IsValid()) ? MonoBehaviourSingleton <EffectManager> .I._transform : MonoBehaviourSingleton <StageObjectManager> .I._transform);
                 Transform launchTrans = initParam.launchTrans;
                 m_cachedTransform.set_position(launchTrans.get_position());
                 m_cachedTransform.set_rotation(launchTrans.get_rotation());
                 m_cachedTransform.set_localScale(data.timeStartScale);
                 m_existTime    = data.appearTime;
                 m_hasExistTime = (data.appearTime > 0f);
                 float                  radius                 = data.radius;
                 float                  capsuleHeight          = data.capsuleHeight;
                 Vector3                hitOffset              = data.hitOffset;
                 int                    ignoreLayerMask        = 20736;
                 GameObject             val                    = new GameObject("CannonBeamAttackObject");
                 CannonBeamAttackObject cannonBeamAttackObject = val.AddComponent <CannonBeamAttackObject>();
                 cannonBeamAttackObject.Initialize(m_attacker, m_cachedTransform, m_atkInfo, hitOffset, Vector3.get_zero(), radius, capsuleHeight, 14);
                 cannonBeamAttackObject.SetIgnoreLayerMask(ignoreLayerMask);
                 m_attackObj = cannonBeamAttackObject;
                 Transform val2 = m_effectTrans = EffectManager.GetEffect(data.effectName, launchTrans);
             }
         }
     }
 }
 public void Initialize(InitParamFloatingMine initParam)
 {
     //IL_00be: Unknown result type (might be due to invalid IL or missing references)
     //IL_00c3: Expected O, but got Unknown
     //IL_0106: 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_0113: Unknown result type (might be due to invalid IL or missing references)
     //IL_0118: Unknown result type (might be due to invalid IL or missing references)
     //IL_011d: Unknown result type (might be due to invalid IL or missing references)
     //IL_012f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0135: Unknown result type (might be due to invalid IL or missing references)
     //IL_013a: 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_015c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0161: Expected O, but got Unknown
     //IL_016b: Unknown result type (might be due to invalid IL or missing references)
     //IL_0178: Unknown result type (might be due to invalid IL or missing references)
     //IL_017d: Unknown result type (might be due to invalid IL or missing references)
     //IL_0189: Unknown result type (might be due to invalid IL or missing references)
     //IL_0196: Unknown result type (might be due to invalid IL or missing references)
     //IL_019b: Expected O, but got Unknown
     //IL_01c1: 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_01fa: Unknown result type (might be due to invalid IL or missing references)
     //IL_01ff: Expected O, but got Unknown
     //IL_021e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0220: Unknown result type (might be due to invalid IL or missing references)
     if (initParam.atkInfo != null)
     {
         m_atkInfo = initParam.atkInfo;
         AttackHitInfo attackHitInfo = m_atkInfo as AttackHitInfo;
         if (attackHitInfo != null)
         {
             attackHitInfo.enableIdentityCheck = false;
         }
         BulletData bulletData = m_atkInfo.bulletData;
         if (!(bulletData == null))
         {
             BulletData.BulletBase data = bulletData.data;
             if (data != null)
             {
                 BulletData.BulletMine dataMine = bulletData.dataMine;
                 if (dataMine != null)
                 {
                     m_attacker          = initParam.attacker;
                     m_landHitEffectName = data.landHiteffectName;
                     m_aliveTimer        = data.appearTime;
                     m_moveSpeed         = data.speed;
                     m_slowDownRate      = dataMine.slowDownRate;
                     m_unbreakableTimer  = dataMine.unbrakableTime;
                     m_mineData          = dataMine;
                     m_isDeleted         = false;
                     m_cachedTransform   = this.get_transform();
                     m_cachedTransform.set_parent((!MonoBehaviourSingleton <StageObjectManager> .IsValid()) ? MonoBehaviourSingleton <EffectManager> .I._transform : MonoBehaviourSingleton <StageObjectManager> .I._transform);
                     Transform launchTrans = initParam.launchTrans;
                     m_cachedTransform.set_position(launchTrans.get_position() + launchTrans.get_rotation() * initParam.offsetPos);
                     m_cachedTransform.set_rotation(launchTrans.get_rotation() * initParam.offsetRot);
                     m_cachedTransform.set_localScale(data.timeStartScale);
                     Transform effect = EffectManager.GetEffect(data.effectName, this.get_transform());
                     effect.set_localPosition(data.dispOffset);
                     effect.set_localRotation(Quaternion.Euler(data.dispRotation));
                     effect.set_localScale(Vector3.get_one());
                     m_effectObj            = effect.get_gameObject();
                     m_effectDeleteAnimator = m_effectObj.GetComponent <Animator>();
                     float   radius    = data.radius;
                     float   height    = 0f;
                     Vector3 hitOffset = data.hitOffset;
                     int     num       = 0;
                     if (dataMine.isIgnoreHitEnemyAttack)
                     {
                         num |= 0xA000;
                     }
                     if (dataMine.isIgnoreHitEnemyMove)
                     {
                         num |= 0x400;
                     }
                     GameObject       val = new GameObject("MineAttackObject");
                     MineAttackObject mineAttackObject = val.AddComponent <MineAttackObject>();
                     mineAttackObject.Initialize(m_attacker, m_cachedTransform, m_atkInfo, hitOffset, Vector3.get_zero(), radius, height, 31);
                     mineAttackObject.SetIgnoreLayerMask(num);
                     m_mineAttackObj = mineAttackObject;
                     RequestMain();
                 }
             }
         }
     }
 }
Example #5
0
    public void Initialize(StageObject attacker, Transform parentTrans, AttackInfo atkInfo, int numLaser)
    {
        //IL_0095: Unknown result type (might be due to invalid IL or missing references)
        //IL_009a: Expected O, but got Unknown
        //IL_00d9: Unknown result type (might be due to invalid IL or missing references)
        //IL_00f2: 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_0119: Unknown result type (might be due to invalid IL or missing references)
        //IL_011e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0140: Unknown result type (might be due to invalid IL or missing references)
        //IL_0145: Expected O, but got Unknown
        //IL_0156: Unknown result type (might be due to invalid IL or missing references)
        //IL_0164: Unknown result type (might be due to invalid IL or missing references)
        BulletData bulletData = atkInfo.bulletData;

        if (!(bulletData == null))
        {
            BulletData.BulletBase  data      = bulletData.data;
            BulletData.BulletLaser dataLaser = bulletData.dataLaser;
            if (dataLaser != null && data != null)
            {
                m_attacker      = attacker;
                m_aliveTimer    = data.appearTime;
                m_nowAngleSpeed = dataLaser.initAngleSpeed;
                m_laserData     = dataLaser;
                m_parentTrans   = parentTrans;
                int           attackLayer   = (!(attacker is Player)) ? 15 : 14;
                AttackHitInfo attackHitInfo = atkInfo as AttackHitInfo;
                if (attackHitInfo != null)
                {
                    attackHitInfo.enableIdentityCheck = false;
                }
                m_atkInfoName = atkInfo.name;
                Transform val = this.get_transform();
                if (m_laserData.isLinkPositionOnly)
                {
                    val.set_parent((!MonoBehaviourSingleton <StageObjectManager> .IsValid()) ? MonoBehaviourSingleton <EffectManager> .I._transform : MonoBehaviourSingleton <StageObjectManager> .I._transform);
                    val.set_position(parentTrans.get_position());
                }
                else
                {
                    val.set_parent(parentTrans);
                    val.set_localPosition(Vector3.get_zero());
                }
                val.set_localRotation(Quaternion.get_identity());
                float   radius         = data.radius;
                float   capsuleHeight  = dataLaser.capsuleHeight;
                Vector3 offsetPosition = dataLaser.offsetPosition;
                float   num            = 360f / (float)numLaser;
                float   num2           = 0f;
                for (int i = 0; i < numLaser; i++)
                {
                    GameObject        val2 = new GameObject("LaserAttackObject");
                    LaserAttackObject laserAttackObject = val2.AddComponent <LaserAttackObject>();
                    laserAttackObject.Initialize(attacker, val, atkInfo, offsetPosition, new Vector3(0f, num2, 0f), radius, capsuleHeight, attackLayer);
                    laserAttackObject.CreateEffect(data);
                    m_laserAttackList.Add(laserAttackObject);
                    num2 += num;
                }
            }
        }
    }
    public void Initialize(StageObject attacker, Transform parentTrans, AnimEventData.EventData data, AttackInfo atkInfo, AnimEventShot childEventShot)
    {
        //IL_0079: Unknown result type (might be due to invalid IL or missing references)
        //IL_007e: Expected O, but got Unknown
        //IL_00b8: Unknown result type (might be due to invalid IL or missing references)
        //IL_00f0: 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_011b: 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_013d: 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_0155: Expected O, but got Unknown
        //IL_0161: Unknown result type (might be due to invalid IL or missing references)
        //IL_0166: Expected O, but got Unknown
        //IL_01a8: Unknown result type (might be due to invalid IL or missing references)
        //IL_01b8: Unknown result type (might be due to invalid IL or missing references)
        //IL_02f0: Unknown result type (might be due to invalid IL or missing references)
        //IL_02f5: Unknown result type (might be due to invalid IL or missing references)
        //IL_0301: Unknown result type (might be due to invalid IL or missing references)
        //IL_0307: Unknown result type (might be due to invalid IL or missing references)
        //IL_030c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0311: Unknown result type (might be due to invalid IL or missing references)
        //IL_031c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0321: Unknown result type (might be due to invalid IL or missing references)
        //IL_0327: Unknown result type (might be due to invalid IL or missing references)
        //IL_032c: Unknown result type (might be due to invalid IL or missing references)
        bulletData = atkInfo.bulletData;
        if (!(bulletData == null))
        {
            BulletData.BulletBase data2 = bulletData.data;
            if (data2 != null)
            {
                this.attacker    = attacker;
                this.parentTrans = parentTrans;
                int           num           = (!(attacker is Player)) ? 15 : 14;
                AttackHitInfo attackHitInfo = atkInfo as AttackHitInfo;
                if (attackHitInfo != null)
                {
                    attackHitInfo.enableIdentityCheck = false;
                }
                atkInfoName = atkInfo.name;
                _transform  = this.get_transform();
                _transform.set_parent((!MonoBehaviourSingleton <StageObjectManager> .IsValid()) ? MonoBehaviourSingleton <EffectManager> .I._transform : MonoBehaviourSingleton <StageObjectManager> .I._transform);
                _transform.set_position(parentTrans.get_position());
                switch (data.intArgs[0])
                {
                case 0:
                    _transform.set_rotation(attacker._transform.get_rotation());
                    break;

                case 1:
                    _transform.set_rotation(parentTrans.get_rotation());
                    break;

                case 2:
                    _transform.set_rotation(Quaternion.get_identity());
                    break;
                }
                defaultPos = _transform.get_position();
                childEventShot.get_transform().set_parent(_transform);
                bulletObj   = childEventShot.get_gameObject();
                bulletTrans = bulletObj.get_transform();
                Vector3 localPosition = default(Vector3);
                localPosition._002Ector(data.floatArgs[0], data.floatArgs[1], data.floatArgs[2]);
                bulletTrans.set_localEulerAngles(new Vector3(data.floatArgs[3], data.floatArgs[4], data.floatArgs[5]));
                bulletTrans.set_localPosition(localPosition);
                rotSpd      = data.floatArgs[6];
                moveSpd     = data.floatArgs[7];
                moveDis     = data.floatArgs[8];
                isChaseXPos = ((data.intArgs[2] != 0) ? true : false);
                isChaseYPos = ((data.intArgs[3] != 0) ? true : false);
                isChaseZPos = ((data.intArgs[4] != 0) ? true : false);
                isChaseXRot = ((data.intArgs[5] != 0) ? true : false);
                isChaseYRot = ((data.intArgs[6] != 0) ? true : false);
                isChaseZRot = ((data.intArgs[7] != 0) ? true : false);
                isRot       = ((data.intArgs[8] != 0) ? true : false);
                isMove      = ((data.intArgs[9] != 0) ? true : false);
                moveDir     = data.intArgs[10];
                isMinusMove = ((data.intArgs[11] != 0) ? true : false);
                if (parentTrans != null)
                {
                    defaultOffsetPos = Vector3.get_zero();
                    defaultOffsetRot = _transform.get_eulerAngles() - parentTrans.get_eulerAngles();
                }
                else
                {
                    defaultOffsetPos = Vector3.get_zero();
                    defaultOffsetRot = Vector3.get_zero();
                }
                if (isChaseXPos || isChaseYPos || isChaseZPos)
                {
                    isUseChasePos = true;
                }
                if (isChaseXRot || isChaseYRot || isChaseZRot)
                {
                    isUseChaseRot = true;
                }
                currentRotAngle = 0f;
                isInit          = true;
            }
        }
    }
    public void Initialize(InitParamActionMine initParam)
    {
        //IL_000c: Unknown result type (might be due to invalid IL or missing references)
        //IL_00be: Unknown result type (might be due to invalid IL or missing references)
        //IL_00c3: Expected O, but got Unknown
        //IL_00fd: Unknown result type (might be due to invalid IL or missing references)
        //IL_010e: Unknown result type (might be due to invalid IL or missing references)
        //IL_011f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0130: Unknown result type (might be due to invalid IL or missing references)
        //IL_0135: Expected O, but got Unknown
        //IL_013f: Unknown result type (might be due to invalid IL or missing references)
        //IL_014c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0151: Unknown result type (might be due to invalid IL or missing references)
        //IL_015d: Unknown result type (might be due to invalid IL or missing references)
        //IL_016a: Unknown result type (might be due to invalid IL or missing references)
        //IL_016f: Expected O, but got Unknown
        //IL_0187: Unknown result type (might be due to invalid IL or missing references)
        //IL_01d5: Unknown result type (might be due to invalid IL or missing references)
        //IL_01ec: Unknown result type (might be due to invalid IL or missing references)
        //IL_02a7: Unknown result type (might be due to invalid IL or missing references)
        //IL_02ac: Unknown result type (might be due to invalid IL or missing references)
        //IL_02c0: Unknown result type (might be due to invalid IL or missing references)
        //IL_02c5: Unknown result type (might be due to invalid IL or missing references)
        //IL_02de: Unknown result type (might be due to invalid IL or missing references)
        //IL_02e6: Unknown result type (might be due to invalid IL or missing references)
        m_timeCount = 0f;
        this.get_gameObject().set_layer(31);
        m_atkInfo = initParam.atkInfo;
        AttackHitInfo attackHitInfo = m_atkInfo as AttackHitInfo;

        if (attackHitInfo != null)
        {
            attackHitInfo.enableIdentityCheck = false;
        }
        BulletData bulletData = m_atkInfo.bulletData;

        if (!(bulletData == null))
        {
            BulletData.BulletBase data = bulletData.data;
            if (data != null)
            {
                BulletData.BulletActionMine dataActionMine = bulletData.dataActionMine;
                if (dataActionMine != null)
                {
                    m_actionCoolTime    = dataActionMine.actionCoolTime;
                    m_attacker          = initParam.attacker;
                    m_landHitEffectName = data.landHiteffectName;
                    m_aliveTime         = data.appearTime;
                    m_unbreakableTimer  = dataActionMine.unbrakableTime;
                    m_mineData          = dataActionMine;
                    m_isDeleted         = false;
                    m_cachedTransform   = this.get_transform();
                    m_cachedTransform.set_parent((!MonoBehaviourSingleton <StageObjectManager> .IsValid()) ? MonoBehaviourSingleton <EffectManager> .I._transform : MonoBehaviourSingleton <StageObjectManager> .I._transform);
                    m_cachedTransform.set_position(initParam.position);
                    m_cachedTransform.set_rotation(initParam.rotation);
                    m_cachedTransform.set_localScale(data.timeStartScale);
                    Transform effect = EffectManager.GetEffect(data.effectName, this.get_transform());
                    effect.set_localPosition(data.dispOffset);
                    effect.set_localRotation(Quaternion.Euler(data.dispRotation));
                    effect.set_localScale(Vector3.get_one());
                    m_effectObj            = effect.get_gameObject();
                    m_effectDeleteAnimator = m_effectObj.GetComponent <Animator>();
                    m_capsule = this.get_gameObject().AddComponent <CapsuleCollider>();
                    m_capsule.set_direction(2);
                    m_capsule.set_radius(data.radius);
                    m_capsule.set_height(0f);
                    m_capsule.set_enabled(true);
                    m_capsule.set_center(Vector3.get_zero());
                    m_capsule.set_isTrigger(true);
                    Rigidbody val = this.get_gameObject().AddComponent <Rigidbody>();
                    val.set_useGravity(false);
                    int num = 0;
                    if (dataActionMine.isIgnoreHitEnemyAttack)
                    {
                        num |= 0x2000;
                    }
                    if (dataActionMine.isIgnoreHitEnemyMove)
                    {
                        num |= 0x400;
                    }
                    if (MonoBehaviourSingleton <AttackColliderManager> .IsValid())
                    {
                        m_colliderProcessor = MonoBehaviourSingleton <AttackColliderManager> .I.CreateProcessor(m_atkInfo, m_attacker, m_capsule, this, Player.ATTACK_MODE.NONE, null);

                        m_attackHitChecker = m_attacker.ReferenceAttackHitChecker();
                    }
                    rand  = new Random(initParam.randomSeed);
                    objId = initParam.id;
                    if (!string.IsNullOrEmpty(m_mineData.appearEffectName))
                    {
                        Vector3 position  = m_cachedTransform.get_position();
                        float   x         = position.x;
                        Vector3 position2 = m_cachedTransform.get_position();
                        Vector3 pos       = default(Vector3);
                        pos._002Ector(x, 0.1f, position2.z);
                        EffectManager.OneShot(m_mineData.appearEffectName, pos, m_cachedTransform.get_rotation(), true);
                    }
                    RequestMain();
                }
            }
        }
    }
Example #8
0
 public void Initialize(InitParamCannonball initParam)
 {
     //IL_0074: Unknown result type (might be due to invalid IL or missing references)
     //IL_0079: Expected O, but got Unknown
     //IL_00bc: Unknown result type (might be due to invalid IL or missing references)
     //IL_00c3: Unknown result type (might be due to invalid IL or missing references)
     //IL_00c9: Unknown result type (might be due to invalid IL or missing references)
     //IL_00ce: Unknown result type (might be due to invalid IL or missing references)
     //IL_00d3: Unknown result type (might be due to invalid IL or missing references)
     //IL_00e5: Unknown result type (might be due to invalid IL or missing references)
     //IL_00eb: Unknown result type (might be due to invalid IL or missing references)
     //IL_00f0: 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_013a: Unknown result type (might be due to invalid IL or missing references)
     //IL_013f: 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_0152: Expected O, but got Unknown
     //IL_0171: Unknown result type (might be due to invalid IL or missing references)
     //IL_0173: Unknown result type (might be due to invalid IL or missing references)
     //IL_01c4: Unknown result type (might be due to invalid IL or missing references)
     //IL_01c9: Expected O, but got Unknown
     //IL_01dd: 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_01ee: 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_0205: Expected O, but got Unknown
     //IL_020f: Unknown result type (might be due to invalid IL or missing references)
     //IL_021c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0221: Unknown result type (might be due to invalid IL or missing references)
     //IL_022d: Unknown result type (might be due to invalid IL or missing references)
     //IL_023a: Unknown result type (might be due to invalid IL or missing references)
     //IL_023f: Expected O, but got Unknown
     if (initParam.atkInfo != null)
     {
         m_atkInfo = initParam.atkInfo;
         AttackHitInfo attackHitInfo = m_atkInfo as AttackHitInfo;
         if (attackHitInfo != null)
         {
             attackHitInfo.enableIdentityCheck = false;
         }
         BulletData bulletData = m_atkInfo.bulletData;
         if (!(bulletData == null))
         {
             BulletData.BulletBase data = bulletData.data;
             if (data != null)
             {
                 BulletData.BulletCannonball dataCannonball = bulletData.dataCannonball;
                 if (dataCannonball != null)
                 {
                     m_attacker        = initParam.attacker;
                     m_cachedTransform = this.get_transform();
                     m_cachedTransform.set_parent((!MonoBehaviourSingleton <StageObjectManager> .IsValid()) ? MonoBehaviourSingleton <EffectManager> .I._transform : MonoBehaviourSingleton <StageObjectManager> .I._transform);
                     Transform launchTrans = initParam.launchTrans;
                     m_cachedTransform.set_position(launchTrans.get_position() + launchTrans.get_rotation() * initParam.offsetPos);
                     m_cachedTransform.set_rotation(launchTrans.get_rotation() * initParam.offsetRot);
                     m_cachedTransform.set_localScale(data.timeStartScale);
                     existTime    = data.appearTime;
                     hasExistTime = (data.appearTime > 0f);
                     float                  radius                 = data.radius;
                     float                  height                 = 0f;
                     Vector3                hitOffset              = data.hitOffset;
                     int                    ignoreLayerMask        = 20736;
                     GameObject             val                    = new GameObject("CannonballAttackObject");
                     CannonballAttackObject cannonballAttackObject = val.AddComponent <CannonballAttackObject>();
                     cannonballAttackObject.Initialize(m_attacker, m_cachedTransform, m_atkInfo, hitOffset, Vector3.get_zero(), radius, height, 14);
                     cannonballAttackObject.SetIgnoreLayerMask(ignoreLayerMask);
                     cannonballAttackObject.SetOwner(this);
                     m_cannonballAttackObj = cannonballAttackObject;
                     gravityStartTime      = dataCannonball.gravityStartTime;
                     gravityRate           = dataCannonball.gravityRate;
                     cannonballRigidbody   = val.GetComponent <Rigidbody>();
                     cannonballTransform   = val.get_transform();
                     float speed = data.speed;
                     cannonballRigidbody.set_velocity(initParam.shotRotation * Vector3.get_forward() * speed);
                     Transform effect = EffectManager.GetEffect(data.effectName, cannonballAttackObject.get_transform());
                     effect.set_localPosition(data.dispOffset);
                     effect.set_localRotation(Quaternion.Euler(data.dispRotation));
                     effect.set_localScale(Vector3.get_one());
                     m_effectObj = effect.get_gameObject();
                 }
             }
         }
     }
 }