Beispiel #1
0
        public override void Execute(BuffObj buff, ref AddDamageInfo damageInfo, SkillCom attacker)
        {
            SkillCom skillCom = damageInfo.target;
            ActorObj actorObj = LCMap.MapLocate.Map.GetActor(skillCom.EntityId);

            GameObject displayGo = actorObj.GetDisplayGo();

            displayGo.transform.DOComplete(false);
            displayGo.transform.DOPunchPosition(new Vector3(-0.2f * actorObj.GetDirValue(), 0, 0), shakeTime, 1, 0);
        }
Beispiel #2
0
 public override void Execute(BuffObj buff, ref AddDamageInfo damageInfo, SkillCom attacker)
 {
     if (damageSet)
     {
         damageInfo.model = DamageModel.Null;
     }
     if (damageSelf)
     {
         SkillLocate.Damage.AddDamage(buff.originer, damageInfo.target, damage);
     }
     else
     {
         SkillLocate.Damage.AddDamage(damageInfo.target, attacker, damage);
     }
 }
Beispiel #3
0
        public override void Execute(BuffObj buff, ref AddDamageInfo damageInfo, SkillCom attacker)
        {
            Debug.LogWarning("受伤暂停决策>>>>>");

            SkillCom skillCom = damageInfo.target;
            Entity   entity   = LCECS.ECSLocate.ECS.GetEntity(skillCom.EntityId);

            entity.PauseEntityDec();
            float timeCount = pauseTime;

            DOTween.To(() => timeCount, a => timeCount = a, 0.1f, pauseTime).OnComplete(new TweenCallback(delegate
            {
                Debug.LogWarning("受伤开启决策>>>>>");
                entity.ResumeEntityDec();
            }));
        }
Beispiel #4
0
 public override void Execute(BuffObj buff, AddDamageInfo damageInfo, SkillCom attacker)
 {
     SkillLocate.Damage.AddDamage(buff.originer, damageInfo.attacker, damage);
 }
Beispiel #5
0
 public override void Execute(BuffObj buff, int modifyStack = 0)
 {
     SkillLocate.Damage.AddDamage(buff.originer, buff.ower, damage);
 }