|
|
@ -64,11 +64,11 @@ namespace SemiColinGames { |
|
|
|
|
|
|
|
private void LoadLevel() { |
|
|
|
world?.Dispose(); |
|
|
|
// world = new SneakWorld(GraphicsDevice, Content.LoadString("levels/demo.json"));
|
|
|
|
world = new TreeWorld(); |
|
|
|
world = new SneakWorld(GraphicsDevice, Content.LoadString("levels/demo.json")); |
|
|
|
// world = new TreeWorld();
|
|
|
|
scene?.Dispose(); |
|
|
|
// scene = new SneakScene(GraphicsDevice, ((SneakWorld) world).Camera);
|
|
|
|
scene = new TreeScene(GraphicsDevice); |
|
|
|
scene = new SneakScene(GraphicsDevice, ((SneakWorld) world).Camera); |
|
|
|
// scene = new TreeScene(GraphicsDevice);
|
|
|
|
|
|
|
|
GC.Collect(); |
|
|
|
GC.WaitForPendingFinalizers(); |
|
|
|