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)]); } } }
public void Repair() { float amount = actor.GetMaxHealth(); amount *= repFactor; actor.GiveHealth(amount); DeliverDamage(0); }
public void Heal(float health) { actor.GiveHealth(health); actor.ApplyDamage(0); if ( isBoss ) { slBoss.value = actor.GetHealthPercentage(); } }