public void SpawnBall() { if (gameOver) { return; } if (ballCount + ballList.Count == 0) { _gameController.ShowGameOverScreen(); } else if (ballList.Count == 0) { ballCount--; InstantiateBall(); } UpdateBallCountText(); }
public void SpawnBall() { if (gameOver) { return; } if (ballCount + ballList.Count == 0) { _gameController.ShowGameOverScreen(); } else if (ballList.Count == 0) { ballCount--; InstantiateBall(); } UpdateBallCountText(); }