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