예제 #1
0
        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;
        }
예제 #2
0
        private void UnloadLevel(bool aborted)
        {
            if (Level == null)
            {
                return;
            }

            Level.Stop();

            if (aborted)
            {
                Level.Abort();
            }

            IsLevelLoaded = false;

            Level = null;
        }