// Update is called once per frame void Update() { selectedLaser = player.currentLaserSelected; for (int i = 0; i < 3; i++) { texts[i].text = messageSelect; if (selectedLaser != null) { string s = ""; switch (i) { case 0: s = selectedLaser.GetWatts().ToString(); break; case 1: s = selectedLaser.GetRequiredWatts().ToString(); break; case 2: s = string.Concat(selectedLaser.GetMultiplier().ToString(), "x"); break; } texts[i].text = string.Concat(updateMessage[i], s); } } }