示例#1
0
 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);
 }
示例#2
0
 public void ApplyHealing(int heal)
 {
     health = Mathf.Clamp((health + heal), 0, maxHealth);
     HealingApplied?.Invoke(new HealingAppliedEventArgs(heal));
 }
示例#3
0
 public void ApplyHealing(int heal)
 {
     OnHealingApplied(heal);
     HealingApplied?.Invoke(new HealingAppliedEventArgs(heal));
 }