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); }