Slow.Apply C# (CSharp) Метод

Apply() публичный Метод

Applies the Buff.
public Apply ( float deltaTime ) : bool
deltaTime float The time between the last application.
Результат bool
    public override bool Apply(float deltaTime)
    {
        this.elapsedTime += deltaTime;
        if (this.elapsedTime > this.duration) {
            this.EndEffect ();
            return true;
        }

        if (this.appliedEffect)
        {
            return false;
        }

        if (this.owner.Speed < this.slowAmmount)
        {
            this.slowAmmount = this.owner.Speed;
        }
        this.owner.Speed -= this.slowAmmount;
        this.appliedEffect = true;

        return false;
    }