}    //IL_0001: Unknown result type (might be due to invalid IL or missing references)

    //IL_0006: Unknown result type (might be due to invalid IL or missing references)


    public void Init(EnemyLoader _loader, Camera render_camrea, bool is_field_quest = false)
    {
        //IL_0038: Unknown result type (might be due to invalid IL or missing references)
        //IL_0056: Unknown result type (might be due to invalid IL or missing references)
        //IL_0088: Unknown result type (might be due to invalid IL or missing references)
        loader       = _loader;
        renderCamera = render_camrea;
        isFieldQuest = is_field_quest;
        animEvent    = new AnimEventProcessor(_loader.animEventData, _loader.animator, this);
        EnemyAnimCtrlProxy enemyAnimCtrlProxy = loader.body.get_gameObject().AddComponent <EnemyAnimCtrlProxy>();

        enemyAnimCtrlProxy.enemyAnimCtrl = this;
        if (isFieldQuest)
        {
            EnemyParam componentInChildren = this.get_gameObject().GetComponentInChildren <EnemyParam>();
            if (componentInChildren != null)
            {
                if (componentInChildren.stampInfos != null && componentInChildren.stampInfos.Length > 0)
                {
                    stepCtrl = this.get_gameObject().AddComponent <CharacterStampCtrl>();
                    stepCtrl.Init(componentInChildren.stampInfos, null, true);
                    stepCtrl.stampDistance = 999f;
                    stepCtrl.effectLayer   = 18;
                }
                Object.DestroyImmediate(componentInChildren);
                componentInChildren = null;
            }
        }
    }
Example #2
0
 public void SetParam(Enemy targetEnemy)
 {
     //IL_02a1: Unknown result type (might be due to invalid IL or missing references)
     //IL_02b9: Unknown result type (might be due to invalid IL or missing references)
     targetEnemy.SetResidentEffectSetting(residentEffectSetting);
     targetEnemy.SetAttackInfos(Utility.CreateMergedArray((AttackInfo[])attackHitInfos, (AttackInfo[])attackContinuationInfos));
     targetEnemy.convertAttackInfos    = Utility.CreateMergedArray((AttackInfo[])convertAttackHitInfos, (AttackInfo[])convertAttackContinuationInfos);
     targetEnemy.regionInfos           = regionInfos;
     targetEnemy.convertRegionInfos    = convertRegionInfos;
     targetEnemy.moveRotateMinimumTime = moveRotateMinimumTime;
     targetEnemy.moveRotateMaxSpeed    = moveRotateMaxSpeed;
     targetEnemy.moveStopRange         = moveStopRange;
     targetEnemy.rotateMinimumTime     = rotateMinimumTime;
     targetEnemy.rotateMaxSpeed        = rotateMaxSpeed;
     targetEnemy.rotateDisableMotion   = rotateDisableMotion;
     targetEnemy.headObjectName        = headObjectName;
     targetEnemy.hipObjectName         = hipObjectName;
     targetEnemy._downMax              = downMax;
     targetEnemy.downHeal              = downHeal;
     targetEnemy.bodyRadius            = bodyRadius;
     targetEnemy.uiHeight              = uiHeight;
     targetEnemy.badStatusMax.paralyze = paralyzeMax;
     targetEnemy.badStatusMax.poison   = poisonMax;
     targetEnemy.badStatusMax.freeze   = freezeMax;
     targetEnemy.badStatusBase.Copy(targetEnemy.badStatusMax);
     targetEnemy.baseHitMaterialName           = baseHitMaterialName;
     targetEnemy.brainParam                    = brainParam;
     targetEnemy.BarrierHpMax                  = barrierHpMax;
     targetEnemy.GhostFormParam                = ghostFormParam;
     targetEnemy.GhostFormShaderParam          = ghostFormShaderParam;
     targetEnemy.AutoBuffParamList             = autoBuffParams;
     targetEnemy.drainAtkInfos                 = drainAtkInfos;
     targetEnemy.healDamageRate                = healDamageRate;
     targetEnemy.isHideSpawn                   = isHide;
     targetEnemy.isHiding                      = isHide;
     targetEnemy.turnUpDistance                = turnUpDistance;
     targetEnemy.gatherPointViewId             = gatherPointViewId;
     targetEnemy.ShieldTolerance               = shieldTolerance;
     targetEnemy.ShieldHpMax                   = shieldHpMax;
     targetEnemy.DizzyReactionLoopTime         = dizzyReactionLoopTime;
     targetEnemy.ExActionID                    = exActionId;
     targetEnemy.ExActionCondition             = exActionCondition;
     targetEnemy.ExActionConditionValue        = exActionConditionValue;
     targetEnemy.GrabHpMax                     = grabHpMax;
     targetEnemy.GrabCannonDamage              = grabCannonDamage;
     targetEnemy.useDownLoopTime               = useDownLoopTime;
     targetEnemy.downLoopStartTime             = downLoopStartTime;
     targetEnemy.downLoopTime                  = downLoopTime;
     targetEnemy.paralyzeLoopTime              = paralyzeLoopTime;
     targetEnemy.shadowSealingBindResist       = shadowSealingBindResist;
     targetEnemy.converteElementToleranceTable = converteElementToleranceTable;
     targetEnemy.madModeHpThreshold            = madModeHpThreshold;
     targetEnemy.madModeLvThreshold            = madModeLvThreshold;
     if (stampInfos != null && stampInfos.Length > 0)
     {
         CharacterStampCtrl characterStampCtrl = this.get_gameObject().GetComponent <CharacterStampCtrl>();
         if (characterStampCtrl == null)
         {
             characterStampCtrl = this.get_gameObject().AddComponent <CharacterStampCtrl>();
         }
         characterStampCtrl.Init(stampInfos, targetEnemy, false);
     }
 }