public void Update() { foreach (var action in PendingActions) { InputHandlers[action].Invoke(); } PendingActions.Clear(); CurrentLevel.Projectiles.ForEach(p => p.Update()); CurrentLevel.Projectiles.RemoveAll(p => !BoundingRectangle.Contains(p.X, p.Y)); }