public void Step() { for (int i = 0; i < transform.childCount; i++) { Bullet bullet = transform.GetChild(i).GetComponent <Bullet>(); if (!(bullet?.Alive ?? true)) { BulletFac.ReturnBullet(bullet); Agent.BulletsToEliminate++; } } }