public void UpdateGameLogic(GameTime gameTime) { SoundEffectPlayer.ProcessSoundEvents(); foreach (IRenderNode node in Layer1.ToArray()) { node.Update(gameTime); } foreach (IRenderNode node in Layer2.ToArray()) { node.Update(gameTime); } foreach (IRenderNode node in Layer3.ToArray()) { node.Update(gameTime); } foreach (IRenderNode node in Layer4.ToArray()) { node.Update(gameTime); } foreach (IRenderNode node in Layer5.ToArray()) { node.Update(gameTime); } }