コード例 #1
0
 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();
     }
 }
コード例 #2
0
 void Update()
 {
     if (HealthModel.GetTotalMaximumArmor() == 0)
     {
         SetImagesVisible(false);
         ArmorText.text = "";
         //Hide
     }
     else
     {
         SetImagesVisible(true);
         UpdateText();
         UpdateBar();
     }
 }