when i was in college i took an unelective game development class that taught unity to students. the final assignment was to create "duck hunt" from scratch (the irony is not lost on me). i wrote some code that would make the duck change directions every 500ms or so and i wrote the script to kill the duck when it was clicked. i didn't understand OOP very well yet, but one of the requirements was to instantiate an object, so i put some conditional logic on the update method that would instantiate a new Duck() if the current one was dead.
the result of this was that, upon killing the first duck, 60 ducks would infinitely spawn per second, flooding the screen and filling the heap like a cosmic horror emerging to exact it's revenge.
