public void ChoseNextKillsToCheck() { nextKillsToCheck = null; if (killsToCheck == null) { return; } if (killsToCheck.Count == 0) { return; } foreach (EnemyWaveWithNeededKills elementToCheck in killsToCheck) { if (nextKillsToCheck == null) { nextKillsToCheck = elementToCheck; } else { if (elementToCheck.GetNeededKills < nextKillsToCheck.GetNeededKills) { nextKillsToCheck = elementToCheck; } } } killsToCheck.Remove(nextKillsToCheck); }
public void AddKillsToCheck(EnemyWaveWithNeededKills killsToChk) { if (killsToCheck == null) { killsToCheck = new List <EnemyWaveWithNeededKills>(); } killsToCheck.Add(killsToChk); }