I already have enemy waves appearing and all, im just wondering wats the best way to spawn new enemies and all when u have 50 stages for example; basically dont want 50 different if statements in row u know?
//Create Level 1 monsters
if(LevelAndMonsterSpawnControl.StageNumber == 1)
{
CreateFlyers();
CreateZombies();
}
//Create Level 2 monsters
if(LevelAndMonsterSpawnControl.StageNumber == 2)
{
//more code
}
etc… and 2nd question is: is there a way to group tags, i mean i got something like
if ((BulletCollision.tag == "Zombie_Small") || (BulletCollision.tag == "Flyer_Small")
|| (BulletCollision.tag == "Zombie_Med") || (BulletCollision.tag == "Flyer_Med")
|| (BulletCollision.tag == "Zombie_Large") || (BulletCollision.tag == "Flyer_Large")
|| (BulletCollision.tag == "Splitter") || (BulletCollision.tag == "SplitterBreak1")
|| (BulletCollision.tag == "SplitterBreak2"))
{
Destroy(gameObject);
}
knowing thats only gonna get longer, how can i make this simpler?