Just about every game has some kind of item that you can collect by moving your avatar over it. Here we implement a simple PowerUp script that randomly instantiates PowerUp items, and then destroys them if an amount of time has passed, or if the item gets collected.