Exemple #1
0
    public void Update(float deltaTime)
    {
        duration -= deltaTime;
        if (intervalTime > 0f)
        {
            curTickTime -= deltaTime;
            if (curTickTime < 0f)
            {
                curTickTime = intervalTime;
                TriggerEvent(ModifierEventType.OnIntervalThink);
            }
        }
        if (isAura)        //光环效果
        {
            auraTarget.ForEachTarget(AuraTargetExe);
        }

        //持续时间结束
        if (duration < 0f && modifierParams.destroyOnExpire)
        {
            Destroy();
        }
    }
Exemple #2
0
 public void AttackTarget()
 {
     target.ForEachTarget((tar) => tar.TakeDamage(DamageType.DAMAGE_TYPE_PURE, attribute.attackDamage));
 }