Ejemplo n.º 1
0
 public void RestartGame()
 {
     if (currentBlock)
     {
         Destroy(currentBlock.gameObject);
     }
     currentBlock = null;
     //remove all blocks
     grid.DeleteAllRows();
     //
     score = 0;
     updateScore.Invoke();
     gameOver = false;
     SpawnNext();
     resetPanel.SetActive(false);
 }