public void ui_update_enemyRemainingText() { global.currentGameType = "Shooter"; canvas.toggleUI(true); canvas.toggleFireballPanel(true); global.Stage = 9; global.EnemiesRemaining = 5; global.updateRemainingEnemiesText(); Text enemiesRemainingText = GameObject.Find("EnemyRemainingText").GetComponent <Text>(); Assert.AreEqual((global.Stage - global.EnemiesRemaining) + " / " + global.Stage, enemiesRemainingText.text); global.currentGameType = "Fighter"; global.updateRemainingEnemiesText(); Assert.AreEqual("1", enemiesRemainingText.text); //In Fighter Game, there is only one enemy at every stage }