public void AddTemporaryEffect(ITemporaryEffect effect) { effect.ApplyEffect(this, _world); TemporaryEffects.Add(effect); effect.Completed += new TemporaryEffectEvent(TemporaryEffectCompleted); }
void TemporaryEffectCompleted(ITemporaryEffect sender) { TemporaryEffects.Remove(sender); }
public void AddTemporaryEffect(ITemporaryEffect effect) { TemporaryEffects.Add(effect); effect.Completed += new TemporaryEffectEvent(TemporaryEffectCompleted); }