Example #1
0
    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);
    }
Example #2
0
    public void AddKillsToCheck(EnemyWaveWithNeededKills killsToChk)
    {
        if (killsToCheck == null)
        {
            killsToCheck = new List <EnemyWaveWithNeededKills>();
        }

        killsToCheck.Add(killsToChk);
    }