public static void Update() { if (!PlayerShip.Instance.IsDead && EntityManager.Count < 200) { if (rand.Next((int)inverseSpawnChance) == 0) { EntityManager.Add(Enemy.CreateSeeker1(GetSpawnPosition())); } } // slowly increase the spawn rate as time progresses if (inverseSpawnChance > 20) { inverseSpawnChance -= 0.005f; } }