Bullet Pools in Unity

Bullets are recycled from the Bullet Pool and new bullets added if needed.
Bullet prefab.
Bullet script.
Variable assignment in PoolManager script.
Variable assignment in Pool_Manager.
GenerateBullets method in PoolManager.
FireBullet method in PoolManager.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store