private void RemoveEnemy(Coolerman enemy) { if (enemies.Contains(enemy)) { enemies.Remove(enemy); } }
internal void KillEnemy(Coolerman enemy) { score++; RemoveEnemy(enemy); if (currentQuantity < MAX_QUANTITY) { currentQuantity = (int)(score * .025 + 5); } if (currentSpawnTime < MIN_SPAWN_TIME) { currentSpawnTime -= (currentSpawnTime * .05f); } if (currentVelocity < MAX_VELOCITY) { currentVelocity += (currentVelocity * .01f); } }