Exemple #1
0
 public void ActualizateEnergy(int amount)
 {
     energy += amount;
     if (energy > 100)
     {
         energy = 100;
     }
     if (energy < 0)
     {
         energy = 0;
     }
     healthBar.ActualziateEnergyBar(energy);
 }