Beispiel #1
0
 public void UpdateHeroHealthGUI()
 {
     for (int i = 0; i < hero.HealthPoints; i++)
     {
         heartContainers[i].GetComponent <HeartContainer>().Activate();
     }
     for (int i = hero.HealthPoints; i < heartContainers.Length; i++)
     {
         heartContainers[i].GetComponent <HeartContainer>().Deactivate();
     }
     if (hero.HealthPoints < 2)
     {
         screenEffects.StartHeroLowHealthEffect();
     }
     else
     {
         screenEffects.StopHeroLowHealthEffect();
     }
 }