void Update() { if (transform.childCount <= 0 && gm.gameState == GameManager.GameState.GAME) { gm.level++; if (gm.level % 2 == 1 && gm.level > 1) { gm.lives++; } paddleMovement.ResetPosition(); ballMovement.ResetPosition(); Spawn(); } }