// Start is called before the first frame update void OnEnable() { startButton.gameObject.SetActive(!mainCtrl.game.IsPlaying); continueButton.gameObject.SetActive(mainCtrl.game.IsPlaying); quitButton.gameObject.SetActive(mainCtrl.game.IsPlaying); startButton.onClick.AddListener(StartClick); continueButton.onClick.AddListener(ContinueClick); quitButton.onClick.AddListener(QuitClick); int hs = PlayerPrefHelper.GetHighscore(); Debug.Log("Show Menu HS" + hs); if (hs > 0) { hsText.text = "Highscore: " + hs; } else { hsText.text = ""; } }