Beispiel #1
0
 public static void RemoveDifficulty(string difficulty)
 {
     if (DifficultyLevels.Contains(difficulty) && DifficultyLevels.Count > 1)
     {
         DifficultyLevels.Remove(difficulty);
         GlobalEvent.DispatchEvent(GameOptionEventEnum.DifficultyChange);
         SaveOption();
     }
 }
Beispiel #2
0
 public static void AddDifficulty(string difficulty)
 {
     if (!DifficultyLevels.Contains(difficulty))
     {
         DifficultyLevels.Add(difficulty);
         GlobalEvent.DispatchEvent(GameOptionEventEnum.DifficultyChange);
         SaveOption();
     }
 }