I noticed you are keeping your object pool as state in your system instance,
https://github.com/sschmid/Entitas-Shmup/blob/master/Assets/Sources/Features/Input/ProcessShootInputSystem.cs#L12
readonly ObjectPool<GameObject> _bulletsObjectPool;
// snipped code
public ProcessShootInputSystem(Pool corePool, Pool bulletsPool) {
// more snipped code
_bulletsObjectPool = new ObjectPool<GameObject>(() => Object.Instantiate(Resources.Load<GameObject>(Res.Bullet)));
}
I've been going back and forth between how much state I store in the systems themselves vs components. Do you think this would be better served as a component?
I noticed you are keeping your object pool as state in your system instance,
https://github.com/sschmid/Entitas-Shmup/blob/master/Assets/Sources/Features/Input/ProcessShootInputSystem.cs#L12
I've been going back and forth between how much state I store in the systems themselves vs components. Do you think this would be better served as a component?