Ejemplo n.º 1
0
    void CultistSpawning()
    {
        if (timeElapsed > delay && maxCultists - recenser.HowMany() > 0)
        {
            int i = 0;

            if (maxCultists - recenser.HowMany() <= 4)
            {
                i = maxCultists - recenser.HowMany() - 1;
            }
            while (i < howManyPerGroup)
            {
                SpawnMinion();
                i++;
            }
            timeElapsed = 0;
        }
    }