↧
Answer by aldonaletto
You could simplify the Enemy class to just hold the percentage, and use *Random.Range(0, 100)* to draw a number in the range 0..99. If you want to spawn at most one enemy each time SpawnEnemies is...
View ArticleAnswer by kalvinlyle
I'm using a similar system for something in my game. This is modified version of that script where I've added an array in place of your random generation. As a best practice it's usually preferable...
View Article