public void ApplyHealing(int heal) { health = Mathf.Clamp(health + heal, 0, maxHealth); healingApplied.Invoke((int)heal); HealingApplied?.Invoke(new HealingAppliedEventArgs(heal)); healthChanged.Invoke(health, maxHealth); }
public void ApplyHealing(int heal) { health = Mathf.Clamp((health + heal), 0, maxHealth); HealingApplied?.Invoke(new HealingAppliedEventArgs(heal)); }
public void ApplyHealing(int heal) { OnHealingApplied(heal); HealingApplied?.Invoke(new HealingAppliedEventArgs(heal)); }