Beispiel #1
0
 public void Repair(int health)
 {
     if (actor.IsAlive())
     {
         actor.GiveHealth(health);
         actor.ApplyDamage(0);
         if (repairSound.Length > 0)
         {
             source.PlayOneShot(repairSound[Random.Range(0, repairSound.Length)]);
         }
     }
 }
Beispiel #2
0
    public void Repair()
    {
        float amount = actor.GetMaxHealth();

        amount *= repFactor;
        actor.GiveHealth(amount);
        DeliverDamage(0);
    }
Beispiel #3
0
 public void Heal(float health)
 {
     actor.GiveHealth(health);
     actor.ApplyDamage(0);
     if ( isBoss ) {
         slBoss.value = actor.GetHealthPercentage();
     }
 }