// Use this for initialization void Start() { paused = false; foreach (var item in new GameObject[] { resumetext, mainmenutext }) { Localiser.LocaliseUIElement(item.GetComponent <Text>()); item.SetActive(false); } }
void Start() { foreach (var item in new GameObject[] { gameOverText, scoreText, textTryAgain, textMainMenu }) { Localiser.LocaliseUIElement(item.GetComponent <Text>()); item.SetActive(false); } formatText = scoreText.GetComponent <Text>().text; buttonTryAgain.SetActive(false); buttonMainMenu.SetActive(false); }