public void Update(float elapsed) { player.Update(elapsed); foreach (Block block in blocks) { block.Collide(player); } camera.Update(player.Position); foreach (Light1 light in lights) { light.Update(elapsed); } }
public void Update(float elapsed) { player.Update(elapsed); foreach (IObstacle obstacle in obstacles) { obstacle.Collide(player); } camera.Update(player); foreach (Light light in lights) { light.Update(elapsed); } }