public void Restart() { gameOverPanel.SetActive(false); scorePanel.SetActive(true); painter.Colorize(); for (int i = 0; i < Grid.h; i++) { Grid.deleteRow(i); } DataBase.score = 0; DataBase.level = 1; DataBase.scoreToNextLvl = 0; GameObject[] groups = GameObject.FindGameObjectsWithTag("Player"); for (int i = 0; i < groups.Length; i++) { Destroy(groups[i].gameObject); } DataBase.gameOver = false; melody.mute = false; spawner.SpawnNext(); spawner.MoveToGame(); }