public void ClearLevel(GFXContainer maingfx) { maingfx.Collider.Clear(); RemoveSpritesFrom(maingfx); maingfx.RemoveObject(Background); maingfx.RemoveObject(LevelBkg); }
public void RemoveSpritesFrom(GFXContainer gfxc) { foreach (var sprite in Sprites) { gfxc.RemoveObject(sprite); } }