Managing GameObjects

Laser shots instantiating and being destroyed after reaching a certain threshold (off-screen)

When dealing with game objects, especially those that are spawned during the runtime of your gameplay, you’ll want to take care to ensure their proper instantiation as well as cleanup, so that your object graph doesn’t become overly cluttered and eat up heaps of memory. In the case of Sovereignty, the player’s ship will be able to utilize various projectile weapons, starting with the basic single-shot rapid-fire laser. The spawn of the laser prefab is…