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