void Awake() { gameobj = GameObject.FindGameObjectsWithTag("Global")[0] as GameObject; global = gameobj.GetComponent <GlobalScript>(); GameObject GameText = GameObject.Find("WinnerText"); Text text = GameText.GetComponent <Text>(); text.text = global.getWinner(); }