internal static void ReloadGame() { Level?.Abort(); Owner.PreviewMenu.RemoveAllItems(); Levels.Clear(); LoadBackGround(VanyaGame.Sets.Settings.GetInstance().BackgroundStartFilename); Owner.StartButton.Reload(); Game.Owner.PreviewMenu.Visibility = Visibility.Collapsed; }
private void UnloadLevel(bool aborted) { if (Level == null) { return; } Level.Stop(); if (aborted) { Level.Abort(); } IsLevelLoaded = false; Level = null; }