// Update is called once per frame void Update() { for (int i = 0; i < guns.Length; i++) { GunBase gun = guns [i]; Text tex = texts [i]; Image im = backdropImages[i]; Color c = im.color; c.g = (guns[i].IsActiveGun())? 120.0f / 255.0f : (gun.Unlocked() ? 60.0f / 255.0f : 43.0f / 255.0f); //Debug.Log ("i " + i + " c.g " + c.g); im.color = c; tex.text = gun.GetGunName() + "\n" + (gun.Unlocked() ? "Unlocked" : "Unlocks at " + gun.UnlockKillCount()); } }