Пример #1
0
        protected override bool doAction()
        {
            base.CreateNode(NodeType.SkillNode, this.performId);
            this.bulletType = (BulletType)this.data.effectParam1;
            this.flyDelay   = this.data.effectParam2 + this.data.config.effect_delay;
            this.startAngle = this.data.effectParam3;
            this.moveSpeed  = this.data.config.effect_speed;
            this.existTime  = this.data.config.effect_time;
            this.AddAction(ActionManager.PlayAnim(this.performId, base.unit, true));
            this.mPlayEffectAction = ActionManager.PlayEffect(this.performId, base.unit, null, null, true, string.Empty, null);
            this.AddAction(this.mPlayEffectAction);
            this.skill = base.unit.getSkillOrAttackById(this.skillData.skillId);
            if (this.useCollider)
            {
                List <Units> list = new List <Units>();
                list.Add(this.targetUnit);
            }
            if (base.IsUseColliderData)
            {
                this.index = this.skill.BulletIndex;
                this.skill.BulletIndex++;
            }
            this.isActive = true;
            base.mCoroutineManager.StartCoroutine(this.Bullet_Coroutine(), true);
            Skill expr_15A = this.skill;

            expr_15A.OnPerformHitCallback = (Callback <string, int>)Delegate.Combine(expr_15A.OnPerformHitCallback, new Callback <string, int>(this.OnPvpHit));
            Skill expr_181 = this.skill;

            expr_181.DestroyAction = (Callback <string, int>)Delegate.Combine(expr_181.DestroyAction, new Callback <string, int>(this.ExternDestroy));
            return(true);
        }
Пример #2
0
 protected override bool doAction()
 {
     this.AddAction(ActionManager.PlayAnim(this.performId, base.unit, true));
     if (StringUtils.CheckValid(this.performId))
     {
         PlayEffectAction action = ActionManager.PlayEffect(this.performId, base.unit, this.targetPosition, new Vector3?(base.unit.mTransform.rotation.eulerAngles), true, this.skillKey.SkillID, this.CasterUnit);
         this.AddAction(action);
     }
     return(true);
 }
Пример #3
0
 protected override bool doAction()
 {
     base.CreateNode(NodeType.SkillNode, this.performId);
     this.bombFollowType = (BombFollowType)this.data.effectParam1;
     this.colliderType   = (ColliderType)this.data.effectParam2;
     this.SetPostion();
     this.AddAction(ActionManager.PlayAnim(this.performId, base.unit, true));
     if (StringUtils.CheckValid(this.performId))
     {
         PlayEffectAction action = ActionManager.PlayEffect(this.performId, base.unit, null, null, true, string.Empty, null);
         base.AttachSubAction(action);
     }
     if (this.useCollider)
     {
         List <Units> list = new List <Units>();
         list.Add(this.targetUnit);
     }
     return(true);
 }
Пример #4
0
        protected override bool doAction()
        {
            base.CreateNode(NodeType.SkillNode, this.performId);
            this.mLinkType   = (LinkType)this.data.effectParam1;
            this.mBoneType   = (BoneAnchorType)this.data.effectParam2;
            this.effect_time = this.data.config.effect_time + this.data.config.effect_delay;
            this.AddAction(ActionManager.PlayAnim(this.performId, base.unit, true));
            string  arg_A5_0 = this.performId;
            Units   arg_A5_1 = base.unit;
            Vector3?vector   = this.targetPosition;

            this.effectAction = ActionManager.PlayEffect(arg_A5_0, arg_A5_1, new Vector3?(vector.Value), null, true, string.Empty, this.CasterUnit);
            this.AddAction(this.effectAction);
            if (this.useCollider)
            {
            }
            this.isActive = true;
            base.mCoroutineManager.StartCoroutine(this.Link_Coroutine(this.targetUnits), true);
            return(true);
        }
Пример #5
0
 private void DoBuffLayerEffect()
 {
     if (this.targetUnits != null && this.data.strParams1 != null)
     {
         for (int i = 0; i < this.targetUnits.Count; i++)
         {
             if (this.targetUnits[i] != null && this.data.param1 != 0f)
             {
                 if (this.targetUnits[i].buffManager.IsHaveBuffGroup((int)this.data.param1))
                 {
                     int buffLayerByGroupId = this.targetUnits[i].buffManager.GetBuffLayerByGroupId((int)this.data.param1);
                     if (buffLayerByGroupId == 0)
                     {
                         if (this.gthEffect != null)
                         {
                             this.gthEffect.Destroy();
                         }
                     }
                     else
                     {
                         int num = buffLayerByGroupId - 1;
                         if (this.data.strParams1.Length > num && this.curPerform != this.data.strParams1[num])
                         {
                             if (this.gthEffect != null)
                             {
                                 this.gthEffect.Destroy();
                             }
                             this.gthEffect  = ActionManager.PlayEffect(this.data.strParams1[num], this.targetUnits[i], null, null, true, string.Empty, null);
                             this.curPerform = this.data.strParams1[num];
                         }
                     }
                 }
                 else if (this.gthEffect != null)
                 {
                     this.gthEffect.Destroy();
                 }
             }
         }
     }
 }
Пример #6
0
 protected override bool doAction()
 {
     base.CreateNode(NodeType.SkillNode, this.performId);
     this.bombType    = (BombType)this.data.effectParam1;
     this.startAngle  = this.data.effectParam2;
     this.bombRadius  = this.data.effectParam3;
     this.actionDelay = BaseAction.GetPerformEffectDelay(base.unit, this.data);
     this.AddAction(ActionManager.PlayAnim(this.performId, base.unit, true));
     if (StringUtils.CheckValid(this.performId))
     {
         this.mPlayEffectAction = ActionManager.PlayEffect(this.performId, base.unit, null, null, true, string.Empty, null);
         this.AddAction(this.mPlayEffectAction);
     }
     if (this.useCollider)
     {
         List <Units> list = new List <Units>();
         list.Add(this.targetUnit);
     }
     this.isActive = true;
     base.mCoroutineManager.StartCoroutine(this.Bomb_Coroutine(), true);
     return(true);
 }
Пример #7
0
 protected override bool doAction()
 {
     base.CreateNode(NodeType.SkillNode, this.performId);
     this.missileType  = (MissileType)this.data.effectParam1;
     this.colliderType = (ColliderType)this.data.effectParam2;
     this.AddAction(ActionManager.PlayAnim(this.performId, base.unit, true));
     this.mPlayEffectAction = ActionManager.PlayEffect(this.performId, base.unit, null, null, true, string.Empty, this.CasterUnit);
     this.AddAction(this.mPlayEffectAction);
     if (!Singleton <PvpManager> .Instance.IsInPvp && this.useCollider)
     {
         List <Units> list = new List <Units>();
         list.Add(this.targetUnit);
     }
     this.isActive = true;
     if (this.IsInstantHit())
     {
         this.InstantHit();
     }
     else
     {
         base.mCoroutineManager.StartCoroutine(this.Missile_Coroutine(), true);
     }
     if (base.unit == null)
     {
         return(false);
     }
     if (this.skillData == null)
     {
         return(false);
     }
     this.skill = base.unit.getSkillOrAttackById(this.skillData.skillId);
     if (this.skill != null)
     {
         Skill expr_133 = this.skill;
         expr_133.DestroyAction = (Callback <string, int>)Delegate.Combine(expr_133.DestroyAction, new Callback <string, int>(this.ExternDestroy));
     }
     return(true);
 }
Пример #8
0
        protected override bool doAction()
        {
            base.CreateNode(NodeType.SkillNode, this.performId);
            this.AddAction(ActionManager.PlayAnim(this.performId, base.unit, true));
            string  arg_5A_0 = this.performId;
            Units   arg_5A_1 = base.unit;
            Vector3?vector   = this.targetPosition;

            this.effectAction = ActionManager.PlayEffect(arg_5A_0, arg_5A_1, new Vector3?(vector.Value), null, true, string.Empty, this.CasterUnit);
            string  arg_98_0 = "TufuS1_1";
            Units   arg_98_1 = base.unit;
            Vector3?vector2  = this.targetPosition;

            this.HookObj = ActionManager.PlayEffect(arg_98_0, arg_98_1, new Vector3?(vector2.Value), null, true, string.Empty, this.CasterUnit);
            this.SetPosition();
            this.sourcePosition = base.unit.trans.position;
            this.cacheTran      = base.transform;
            this.AddAction(this.effectAction);
            this.AddAction(this.HookObj);
            this.ResetLineRender();
            this.isActive  = true;
            this.isHookMan = false;
            this.isForward = true;
            this.skill     = base.unit.getSkillOrAttackById(this.skillData.skillId);
            Skill expr_11F = this.skill;

            expr_11F.OnTargetHitCallback = (Callback <List <Units> >)Delegate.Combine(expr_11F.OnTargetHitCallback, new Callback <List <Units> >(this.OnTargetHit));
            this.mBoneType   = (BoneAnchorType)this.data.effectParam1;
            this.flyDistance = this.data.effectParam2;
            this.minSpeed    = this.data.config.effect_speed / 2f;
            Skill expr_185 = this.skill;

            expr_185.DestroyAction = (Callback <string, int>)Delegate.Combine(expr_185.DestroyAction, new Callback <string, int>(this.ExternDestroy));
            this.hookBackDelay     = 0f;
            base.mCoroutineManager.StartCoroutine(this.Link_Coroutine(), true);
            return(true);
        }