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

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

Initializes an instance of DebuffBase.
public Slow ( EnemyBase, owner, float duration, float slowPercent )
owner EnemyBase, The agent under the effect.
duration float The length of time the buff is active.
slowPercent float The percentage of the agent's speed to subtract.
    public Slow(EnemyBase owner, float duration, float slowPercent)
    {
        this.objectManager = ObjectManager.GetInstance();
        this.owner = owner;
        this.duration = duration;
        this.slowAmmount = this.owner.Speed * slowPercent;
    }