// Use this for initialization void Start() { GameObject mainGameObject = GameObject.FindGameObjectWithTag("GameController"); if (mainGameObject != null) { game = mainGameObject.GetComponent <AdventureGame>(); } text = GameObject.FindGameObjectWithTag("Success Text").GetComponent <Text>(); text.text = "You have completed " + game.GetRoomTitle() + ". Congratulations!!"; }