private void LoadNextLevel() { ball.ResetBall(); lvl++; CleanBlockGrid(); levelPopulator.PopulateGrid(); }
private void OnTriggerEnter2D(Collider2D collision) { ball.lives--; display.DisableLive(ball.lives); if (ball.lives <= 0) { FindObjectOfType <LevelManager>().LoadGameOver(); return; } ball.ResetBall(); }