private void OnResetPool(int size) { //Change pool size. Warning, if the pool size is changed, for example, from 30 to 1 //the objects that had been created and are in use will stay on the scene until they are pushed back into the pool, at which moment they will be desroyed. _pooler?.ResizePool(size); }