void OnTriggerEnter2D(Collider2D collision) { Menu.menuV(); restart = true; spawner.EndGame(); GO.Play(); //ball.GetComponent<Rigidbody2D>(); gameover.text = "GAME OVER"; if (Score.scoreValue > PlayerPrefs.GetInt("HighScore", 0)) { gameover.text = "CONGRATULATIONS\n\tGAME OVER"; } Score.scoreValue -= 1; }