public void Heal(int heal) { currentHealth += heal; if (currentHealth > maxHealth) { currentHealth = maxHealth; } OnHealEvent.Invoke(currentHealth, maxHealth); }
public void ResetHealth() { currentHealth = maxHealth; IsDeath = false; OnHealEvent.Invoke(currentHealth, maxHealth); }