public void Update(float deltaTime) { if (DelayedActions.Count > 0) { var pairs = DelayedActions.FindAll(x => x.Value <= Game.GameTimeSeconds); foreach (var pair in pairs) { pair.Key(); DelayedActions.Remove(pair); } } }