Why not destroy laser after some time?

I just added this “Destroy(laser, 1f);” in “IEnumerator FireContinously();”

3 Likes

If you are certain that every laser you would want to create for the game will be of no use after one second, then you’re good.

However, say you decide to create a slow missile, a guider missile that chases around other targets, or any other type of missile that might still be useful after one second. Unless you’re designing the missile to have a “limited range”, then you’ll need to create a special case for that missile.

~ C. out.

2 Likes

Privacy & Terms