A check for if the amount is zero and/or the GameObject is null should be added to ObjectPools.cs When pools are created a null reference error will be thrown if a pool can't create any GameObjects when it should be skipped.