EnemyBase.ApplyDebuffs C# (CSharp) Method

ApplyDebuffs() public method

Applies the debuffs to the EnemyBase
public ApplyDebuffs ( ) : void
return void
    public void ApplyDebuffs()
    {
        List<IBuff> removeList = new List<IBuff> ();
        foreach (IBuff debuff in this.debuffs)
            if (debuff.Apply (Time.deltaTime * (float)this.objectManager.gameState.GameSpeed))
                removeList.Add (debuff);

        foreach (IBuff debuff in removeList) {
            this.debuffs.Remove (debuff);
        }
    }