This was made during one of my interactive display classes where we had to work in a team to make either a VR or AR game. In this game, the player has to fight off waves of zombies. The zombies can drop items such as med kits or ammo. Player's are able to gain money and points by hitting zombies, The money can be used to buy other guns. Once the player either completes all the waves or dies, they will be taken to a score board. The score board will display high scores of other people. If the player has a higher score compared to any of the of scores saved then there score will be saved while the lowest high score is deleted.
This is code for 2 separate scripts I made for spawning enemies. One script handles spawning enemies and just does only that. The other script helps sets up the spawners and waves and keeps track of the wave count, essentially its a manager for any object with the spawner script.