Ejemplo n.º 1
0
 public void EndLevel()
 {
     if (Win)
     {
         currentLvl += 1;
         if (UnlockedLevelCount < currentLvl)
         {
             UnlockedLevelCount = currentLvl;
             SaveUnlockedLvl();
         }
     }
     if (currentLvl < levelCount)
     {
         ResetLevel();
     }
     else
     {
         ClearLevel();
         menuScript.EndOfLevels();
     }
 }