public void Damage(int damage) { health -= damage; PopUpTextManager.SpawnPopUpText(damage.ToString(), transform.position, PopColor.red); if (health <= 0) { Die(); } }
public void Heal(int heal) { health += heal; PopUpTextManager.SpawnPopUpText(heal.ToString(), transform.position, PopColor.green); }