// Update is called once per frame void Update() { cmp_spwn.CounterUpdater(); if (cmp_spwn.objActiveCounter < maxSceneObjs) { SpawnBomb(); } }