Hi!
For one of my assignments, I have to create a concept of levels in my game. But the levels don't change the world, it just adds another object (animal) into the game.
So, I tried doing an if-statement like
if (newLevel == 2)
{ getObjectblahblahblah }
but when I do that, the method keeps running in a loop! So the object keeps adding more and more animals.
How do I stop this loop? Or should I be using a boolean... Any suggestions would help a lot! Thanks! :)

