Ejemplo n.º 1
0
 public void Prestige()
 {
     this.honor += GetPrestigeRelicCount();
     this.level  = 1;
     foreach (var unit in scene.unitsList)
     {
         unit.level = 0;
     }
     foreach (var skill in scene.skillList)
     {
         skill.isUnlocked = false;
     }
     this.gold          = 0;
     scene.currentStage = 0;
     foreach (var enemy in scene.enemyList)
     {
         enemy.RemoveSelf();
     }
     scene.enemyList.Clear();
     Console.WriteLine(scene.enemyList.Count);
     scene.StartStage();
     scene.needUpdate = true;
 }