private IBonus InstantiateBonus(BonusCategory category) { IBonus projectile = _bonusFactory.Create(category); projectile.Dispose(); return(projectile); }
public void DisposeBonus(IBonus bonus) { if (bonus == null) { return; } bonus.Dispose(); _bonuses[bonus.Category].Push(bonus); }