public void TriggerEndGame() { Cursor.visible = true; gameInProgress = false; CounterController counterController = counter.GetComponent <CounterController>(); string lensOrLenses = (counterController.GetCount() == 1) ? " lens!" : " lenses!"; finalScore.text = "Matched " + counter.text + lensOrLenses; finalScore.gameObject.SetActive(true); continueButton.interactable = false; ShowMenu(); }