Exemplo n.º 1
0
 public void NewHealer(float regenAmount, float regenTime)
 {
     if (regenTime < 1)
     {
         currentHealth += regenAmount;
     }
     else
     {
         updateHealth temp = new updateHealth
         {
             amount = regenAmount/regenTime,
             timer = regenTime
         };
         healthChange.Add(temp);
     }
 }
Exemplo n.º 2
0
 public void NewDamage(float damageAmount, float damageTime)
 {
     if (damageTime < 1)
     {
         currentHealth -= damageAmount;
     }
     else
     {
         updateHealth temp = new updateHealth
         {
             amount = -(damageAmount/damageTime),
             timer = damageTime
         };
         healthChange.Add(temp);
     }
 }