Exemple #1
0
 public static void CleanLevel(this GameLevel level)
 {
     if (level == null)
     {
         return;
     }
     level.RemoveTowers();
     level.RemoveCreeps();
     level.GetStoredPaths().Clear();
     level.RemoveCurrentTracers();
     ResetPlayerGoldAndLives();
     level.DeadCreepCount        = 0;
     level.ExitReachedCreepCount = 0;
     level.WaveGenerator.Dispose();
     level.IsCompleted = false;
 }