/// <summary> /// Restart level /// </summary> /// <param name="spawnPosHero">Start positie van de hero</param> /// <param name="currentLevel">Huidige level</param> /// <param name="collisionObjects">Lijst met alle objecten die kunnen colliden</param> /// <param name="hero">Hero object dat we besturen</param> private void RestartLevel(Vector2 spawnPosHero, ref Level currentLevel, List <ICollide> collisionObjects, Hero hero) { collisionObjects.Clear(); currentLevel = new Level1(content); currentLevel.CreateWorld(content, collisionObjects); SetHeroSpawnLocation(spawnPosHero, hero); }