private void Update() { if (HealthModel.GetTotalMaximumArmor() == 0) //If no armor at all on player, never picked up, then hide this part of the UI { SetImagesVisible(false); ArmorText.text = ""; //Hide } else { SetImagesVisible(true); UpdateText(); UpdateBar(); } }
void Update() { if (HealthModel.GetTotalMaximumArmor() == 0) { SetImagesVisible(false); ArmorText.text = ""; //Hide } else { SetImagesVisible(true); UpdateText(); UpdateBar(); } }