public void ui_update_stage() { canvas.toggleUI(true); global.Stage = 20; global.updateStage(); Text stageText = GameObject.Find("StageText").GetComponent <Text>(); Assert.AreEqual("Stage: 20", stageText.text); }